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
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
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...
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.
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...
Thanks Maryna i got it.Another small issue.How do i remove it?
This should help http://api.jquery.com/remove/