0

Popup Toggle using popup.open()

asked 2014-11-26 06:09:31 +0800

JustinFrost gravatar image JustinFrost
145 1 6

updated 2014-11-26 06:10:08 +0800

Hi All,

I want to use the type=toggle for the zk.popup as per below:

<button label="Popup" popup="popupId, type=toggle"/>

However we are implmenting the popup using the open method so we can pass the position as such:

<button label="Popup" onClick='popupId.open(self, "before_start");'/>

Is there any way to use the toggle option when displaying the Popup with the open method ?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-26 12:59:25 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

You don't have to open the popup manually to set the position. You may set the popup's position in the declaration like this:

<button label="Popup" popup="popupId, type=toggle, position=before_start"/>

Hope that helps

Costas

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: 2014-11-26 06:09:31 +0800

Seen: 15 times

Last updated: Nov 26 '14

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