List within a List?

edited September 2013 in Newbie Questions
I want to create a hierarchical list where items can be reordered through drag and drop but am having some troubles.

So far I have this:
	    {kind: "List", count: 10, onSetupItem: "setupItem1", components: [
	        {kind:"onyx.Button", content: "Add1"},
		    {kind: "List", count: 10, onSetupItem: "setupItem2", components: [
		        {kind:"onyx.Button", content: "Add2"},
		    ]},
	    ]},
setupItem1 is called 10 times but setupItem2 is never called but should also be called 10 times, is it not possible to have a List kind within another List kind or am I doing something wrong?

jsFiddle: http://jsfiddle.net/gLFLq/

Comments

Sign In or Register to comment.