Issue 269: Allow customization of attribute to be used for node configuration when building from <ul>
Status:  Duplicate
Merged:  issue 252
Owner: ----
Closed:  Jan 2012
Reported by mjt...@gmail.com, Jan 10, 2012
What new or enhanced feature are you proposing?

Add code to allow customization of the attribute used for inline node confiugration when building from a <ul> inside a document.

Currently, this is hard-coded to a 'data' attribute which is not valid HTML.  I would rather be able to make use of a HTML5 data-* attribute.

I've attached a patch that makes such a change possible.  Each <ul> may declare a 'data-dynatree' attribute containing a JSON representation of an Object which may contain a nodeDataAttrName property that defines what attribute name should be checked on each <li> within the <ul>.

To retain backwards compatibilty, should the data-dynatree not be present on any <ul>, the attribute name defaults to 'data'.

What goal would this enhancement help you achieve?

Standards compliance, configuration flexibility.

Cheers,

Mark.
jquery.dynatree.js.diff
1.1 KB   View   Download
Jan 11, 2012
Project Member #1 moo...@wwwendt.de
Very good!
I had similar plans for 1.3, so I merge this into  issue 252 .
Thanks,
Martin
Status: Duplicate
Mergedinto: 252
Jan 26, 2013
Project Member #2 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release0.0