This support forum belongs to the AlloyUI State Interaction Gallery Module.
AlloyUI State Interaction has a bug tracker here: http://issues.liferay.com/browse/AUI
| Page 1 of 1 | [ 3 posts ] |
|
i use alloyui calendar in my project
YUI, Why not Use In your project?
but i when the calendar load it's style, my whole page became a mess, this is the first problem secondly, i use yui delegate to listen the special content area, and when user click the specific input field the calendar render and show, but when click twice, it create a calendar again how to solve these two problems, thanks |
Nate CavanaughYUI Contributor
|
Hi there,
Nate Cavanaugh
Thanks for using the widget! Number 1 is probably related to the fact that the module has a full CSS framework, including a reset.css. You can however tell the YUI object to load the CSS before your stylesheet. So let's say your stylesheet is: Code: <link href="main.css" rel="stylesheet" type="text/css" /> You can give that link an id like "myStyleSheet": Code: <link id="myStyleSheet" href="main.css" rel="stylesheet" type="text/css" /> Then, when you call YUI(), you would pass in the config option "insertBefore" like so: Code: YUI({ insertBefore: "myStyleSheet" }).use() And that should load up the CSS before your stylesheet. As for the second problem, the best way to handle this would be to create the widget outside of the delegate function, and then inside of the delegate function, you can call .render().show(), like so: Code: var calendar = new Y.Calendar({...}); Y.delegate('click', function(){ calendar.render().show(); }, 'input'); And that should work. But without seeing your code, it's hard to say for sure the set up you have. I hope that helps! |
Eduardo LundgrenYUI Contributor
|
The Calendar constructor has an option called trigger, which handle the bind for you.
var calendar1 = new A.Calendar({ trigger: '#input1', .... }) .render(); |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group