Opened 13 years ago
Closed 13 years ago
#5603 closed enhancement (fixed)
[patch][cla] add an .instantiate method to NodeList
Reported by: | dante | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Core | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
it would be cool to do bulk-widget creation programatically.
dojo.require('dijit.form.Button'); dojo.addOnLoad(function(){ dojo.query(".buttons").instantiate(dijit.form.Button,{}); });
the idea is to assist in creating semantic/degradable dojo-sites. this would make it easier to manipulate nodes or groups of nodes, and create widgets out of them.
Attachments (1)
Change History (12)
Changed 13 years ago by
Attachment: | nodelist.test.patch added |
---|
comment:1 Changed 13 years ago by
Milestone: | 1.1 → 1.2 |
---|
comment:2 Changed 13 years ago by
Milestone: | 1.2 → 1.1 |
---|---|
Owner: | changed from dante to alex |
Status: | new → assigned |
comment:4 Changed 13 years ago by
Summary: | add an .instantiate method to NodeList → [patch][cla] add an .instantiate method to NodeList |
---|
comment:5 Changed 13 years ago by
comment:6 Changed 13 years ago by
comment:7 Changed 13 years ago by
Owner: | changed from alex to dante |
---|---|
Status: | assigned → new |
Reassigning to Peter to write more testcases.
comment:8 Changed 13 years ago by
Milestone: | 1.1 → 1.2 |
---|
expanded test - refs #5990 - will expand test and hopefully make small query() demo
comment:9 Changed 13 years ago by
comment:10 Changed 13 years ago by
comment:11 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
this probably has enough tests now, scattered throughout and it's own dijit test case. Will open another ticket should I (or others) find it necessary to sniff .startup() or otherwise return something other than a NodeList from the method.
Note: See
TracTickets for help on using
tickets.
updated patch