CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Assign node icon at runtime

by Davide » 23 Dec 2015 16:32

Hello,

is it possible on JQDynaTree assign the node icon by code ?
I mean assign node icon in GetRooNodes or GetChildrenNodes functions to choose at runtime which icon show for each node.

Thank you,
Davide
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 29 Dec 2015 12:24

Hi Davide,

it possible, but only via css class.
Basically, you need pass your custom css class in addClass, then you need define the css rules to that class, which will control the icon.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Vanya » 11 Mar 2016 18:25

I managed to change icons on runtime by setting Dynatree imagepath and then setting JSonObj.S['icon'] to the file name.
Vanya
 
Posts: 23
Joined: 29 May 2012 16:44


Return to JQDynaTree

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.