Welcome, guest ( Login )

WikiHome » WidgetProjects » WidgetGeneralTasks

WidgetGeneralTasks

Version 3, changed by bill@dojotoolkit.org 06/05/2006.   Show version history


General Tasks

Fix widgets that can't be programmatically instantiated - Bill

Goals


  • support programmatic instantiation of widgets

Many widgets can't be instantiated programmatically because addChild() doesn't work. They do certain operations in postCreate() for the initial children that aren't repeated for in addChild() dynamically added children.


  • write test case showing programmatic instantiation for each widget
  • support removeChild() and addChild() specifying a position

Status: Ready to implement


Note: "joose" is doing a lot of programmatic stuff w/widgets and may donate some test cases.


Standardize widget API from user's perspective - ???

Goals


  • From a users' perspective, need to standardize names for widget parameters (example: caption vs. title vs. label)
  • and functions (ex: delete() vs remove() )

Chris Perdue volunteered to draw up naming suggestion but haven't heard anything back from him.


Widget sizing - Bill

This is for applications like the Mail demo, that size everything to fit the screen much like a swing application. Based on Cal's Pane objects and Bill's extensions of them.



  • Goals*

  • all widgets that "should be sizable", such as the Editor, obey the sizing info specified in the CSS for the source domnode Ex:

<div dojoType="Editor" style="width: 123px">



  • for progammatically created widgets, obey the CSS in the style argument:

dojo.widget.createWidget("Editor", '{title: "...", style: {width: '500px', height: '300px'} });


  • be able to stick each of those widgets in a SplitPane, TabPane etc. and they will size accordingly
  • widgets display a scrollbar if necessary. Example: on editor, the rich text area scrolls but the toolbar is always visible.

This one is from my list but I think a number of people have asked for it.


Strategy:


  • use layoutpane technology (sizing by javascript) or use a table to leverage browser's automatic sizing.

Currently Editor and SortedTable can't set size (Tom didn't want SortedTable to be modified to support presentational features so we may have to make a new class that does it?)






Grid - Brian

Lazy loading grid to connect to data binding stuff. Something like LiveGrid. Brian Skinner is in charge of this project.

Attachments (0)

  File By Size Attached Ver.