0

How to create a hyper link?

asked 2008-02-21 15:58:28 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4792166

By: ramisyuanbo

Is there a zul component looking like an html hyper link?

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2008-02-21 16:04:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4792183

By: madruga0315

Hey,

Look at toolbarbutton component, but not nested inside a toolbar

try in zk demo

<window>
<toolbarbutton label="link"/>
</window>

Madruga

link publish delete flag offensive edit

answered 2008-02-21 16:36:07 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4792253

By: ramisyuanbo

That is great.
But the hyperlink(the toolbarbutton )'s color is not blue as a usual link. How do make it blue?

link publish delete flag offensive edit

answered 2008-02-21 16:44:20 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4792280

By: madruga0315

Hey...

I guess i did not understood your question, because for me the link is blue.

but you can customize with the style property

try this, and youll see the hyper link in red.

<window title="My First Window" border="normal" width="200px">
<toolbarbutton label="link" style="color: red;" /> </window>

The normal link usually is not underlined, and is underlined in the onMouseOver event.
The toolbarbutton is always underlined, but you can customize this as well with the style property and the action property (for the onMouseOver and onMouseOut).

Madruga

link publish delete flag offensive edit

answered 2008-02-22 03:04:56 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4793326

By: ramisyuanbo

Thanks madruga0315 for ur patient!

The reason why my hyperlink is not blue by default is it's located inside a listbox cell. I've even tried a html link inside a <html></html> block, and the link is still black by default.

By the way, when a <toolbarbutton /> is put inside a listbox cell, the link is NOT underlined by default.

link publish delete flag offensive edit

answered 2012-08-23 07:41:48 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

You can use like this
<toolbarbutton label="link" href="http://www.askkuber.com"> </toolbarbutton>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-02-21 15:58:28 +0800

Seen: 2,396 times

Last updated: Aug 23 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More