sony
sony

Reputation: 1587

using exapandable/collapsable popups in zk

I am using zk. I am wondering if ZK supports a way to display collapsable/expandable windows. Say, I have a hyperlink on my webpage. When I click on the hyperlink, instead of navigating to another page I would like to display a collapsable/expandable popup which is attached to the hyperlink like so : http://www.screencast.com/users/sonyv/folders/Default/media/0ce4483a-d23d-4164-82f5-c45a7dfff05b

Thanks, Sony

Upvotes: 0

Views: 642

Answers (2)

user520458
user520458

Reputation:

Try the following:

<zk>
    <label popup="msg" value="Hyperlink" />
    <popup id="msg">
        <hbox>
            Select a color:
            <combobox />
        </hbox>
    </popup>
</zk>

I just tested it in the Sandbox. You can put whatever you like inside the popup, and you can put it over several type of components (not only label).

Upvotes: 0

Ryan W
Ryan W

Reputation: 6173

you can use ZK's popup component

<popup id="mail" width="300px">
    <html><![CDATA[
        Please enter real email address. <br /> The validator
        allow multiple email addresses separated by semi-colons
        (<font color="red">;</font>).<br /> For
        Example:<u>[email protected]</u>;<u>[email protected]</u>
    ]]></html>
</popup>

and customize the style to fit what you need :)

Upvotes: 1

Related Questions