#7298 closed enhancement (fixed)
_Widget - include a placeAt method for all widgets
Reported by: | dante | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | Dijit | Version: | 1.1.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I've created a function (placeAt) that, when mixed into _Widget provides all widgets with a dual-purpose dom-placement utility. First, it wraps the dojo.place API, allowing you to automatically place the widget's domNode somewhere in the DOM. Next, you can pass a widget reference instead of a domNode reference, and the passed widget has an addChild method, the widget is added to to the passed widget. For added fun and convenience, placeAt returns 'this', to allow for chaining and/or storing of the same object ref.
Change History (2)
comment:1 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 13 years ago by
Note: See
TracTickets for help on using
tickets.
(In [14602]) fixes #7298 - add a placeAt method to _Widget for simple (and chainable) dom manipulation on a per-widget basis. !strict