additional html forms like text, textarea or buttons in source definition of fancytree

23 views
Skip to first unread message

spe...@googlemail.com

unread,
Sep 18, 2018, 9:19:43 AM9/18/18
to Fancytree Q&A
I have defined the node structure of fancytree, using the "source" option as it is recommended in the docu. E.G.

source:
[
{title: "TopNode", key: "1", folder: true, children:
[
{title: "FirstSub", key: "2"},
{title: "SecondSub", key: "3"},
{title: "ThirdSub", key: "4"}
]}
]

As I have seen in the tweak samples, it is possible to add form elements like text, textarea, buttons etc. to a node. But in the samples the node structure is defined as html markup. Any idea how it is possible to add form elements into the source definition ?

spe...@googlemail.com

unread,
Oct 5, 2018, 4:54:38 AM10/5/18
to Fancytree Q&A
Ok, got it. Simply use title name as html definition.
Reply all
Reply to author
Forward
0 new messages