0

ZK Popup demo and understanding

asked 2013-11-11 06:48:09 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

updated 2013-11-11 06:55:50 +0800

Hi

I am trying to understand the use of popup as per this ZK DEMO

Here are some question

  1. Why the popup component has been defined inside the template, if so, it will be create for each row.

  2. Can we define this outside the grid and call when click one of the list item ?

  3. Just wondering how we can call the popup in MVVM after clicking an listitem ?

  4. Can we show close button in the right corner of the popup ?

Kind request to ZK Demo

For all the demo, you should show both on MVC and MVVM.

Please help

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2013-11-11 07:04:19 +0800

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

Are you looking something like this

<zk>
  <menupopup id="theContext">
    <menuitem label="a"/>
    <menuitem label="b"/>
    <menuitem label="c"/>
  </menupopup>


  <popup id="thePopup" width="100px" height="100px">
    <label value="I am hiding the context menu..." />
  </popup>
  <window border="normal" title="Tooltip popup hides context">

        <listbox height="300px">
          <listitem label="The listitem" tooltip="thePopup, delay=2000" context="theContext" />
        </listbox>

    </window>
</zk>
link publish delete flag offensive edit
0

answered 2013-11-11 13:40:19 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Thank you. Can you please tell me how to pass arguments to the popup comp ? Say for example, instead a,b,c , can just pass the listitem itself to popup ?

link publish delete flag offensive edit
0

answered 2013-11-26 02:25:10 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi

Because place the popup in the template, then it can retrieve the data with EL

 <popup id="detail_${each.car.carId}">
    <include src="/widgets/getting_started/dialog_popup/car_detail.zul"
        orderItem="${each}" />
</popup>
link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2013-11-11 06:48:09 +0800

Seen: 36 times

Last updated: Nov 26 '13

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