Page 1 of 1
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 11:50 am
by v_kavvadias
Hi.I want to dynamically add buttons to a collapsible content.Can you please point me on how to do this?
Please do not point me to a tutorial just a simple code like Appery('collapsiblecontentName').append() will do.
Thanks
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 1:02 pm
by Nikita
Hello,
You can dynamically add components via mapping:
http://docs.appery.io/documentation/r...
and create any handler for service via generic service:
http://docs.appery.io/documentation/u...
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 4:37 pm
by v_kavvadias
Thanks for the answer but i don't wanr to do it via a service.I want to do it via javascript.I have an array and i want to add butons to a collapsible content with button values = array values.Can you please give me an example code on how to do this?Thanks.
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 6:57 pm
by Maryna Brodina
Hello!
Sorry, but custom JS code is outside the scope of our support. You should add button html code inside necessary element. For instance, preAppery('mobilecollapsblockName').find(".ui-collapsible-content").append(....)/preand add event handlers on buttons, see http://api.jquery.com/category/events...
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 7:17 pm
by v_kavvadias
Thanks Maryna i got it.Another small issue.How do i remove it?
Add Dynamically collipsible content
Posted: Thu Mar 20, 2014 9:56 pm
by Maryna Brodina