Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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:


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 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 dante

Resolution: fixed
Status: newclosed

(In [14602]) fixes #7298 - add a placeAt method to _Widget for simple (and chainable) dom manipulation on a per-widget basis. !strict

comment:2 Changed 13 years ago by dante

(In [14603]) refs #7298 - optimize some. passed reference through dojo.byId, and undefined == "last", so no need for the
on position. thanks les. !strict
Note: See TracTickets for help on using tickets.