v_kavvadias
Posts: 0
Joined: Mon Mar 10, 2014 8:46 pm

Add Dynamically collipsible content

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Add Dynamically collipsible content

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...

v_kavvadias
Posts: 0
Joined: Mon Mar 10, 2014 8:46 pm

Add Dynamically collipsible content

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Add Dynamically collipsible content

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...

v_kavvadias
Posts: 0
Joined: Mon Mar 10, 2014 8:46 pm

Add Dynamically collipsible content

Thanks Maryna i got it.Another small issue.How do i remove it?

Return to “Issues”