Login Register

Widget subsystem changes

This chapter lists general information on changes to the widget subsystem, as well as a migration path for each widget in Dojo 0.4, where available.

The 0.9 release has a number of improvements over 0.4:

  • themability: much easier to customize look of widgets
  • size and speed: download is about half the size and page renders much faster
  • new features (cooler sliders, tooltip dialog, enhanced form controls, etc.)
  • most widgets are accessible (high-contrast mode, screen reader, etc.) and internationalized (translations and bidi support)
  • dojo.data integration for the widgets
  • more powerful markup syntax (Declaration widget and <script> tags for declaring function parameters)

But, there are a number of Dojo 0.4 features that haven't made it into Dijit or Dojox yet. Some people may even want to defer upgrading until some more of these features are added. Some of the things that are missing (but we plan to port eventually):

  • Table: 0.4 has FilteringTable. Planning to replace it with a table based on dojo.data but unfortunately not implemented yet. (note that we get messages every day saying how important table is; we are well aware that it needs to get finished ASAP)
  • Tree: basic tree is ported to 0.9 but it's missing features such as
    • dynamically changing the data after the tree is created
    • drag and drop
    • editing of cells
    • icons next to label
    • context menu (but i think you can tack this on to the normal tree)
  • Editor: has basic functionality but missing some important toolbar items like select h1/h2/p/etc, or selecting the font size/color, and missing floating toolbar
  • Charting
  • Map widgets: these haven't been ported to DojoX yet
  • TaskBar (for FloatingPane minimize/maximize restore functionality): someone should build an MDI module in dojox to support stuff like this, if there is interest.
  • Soria theme (blue colored widgets from 0.4): 0.9 has a new theme called tundra where all the widgets are gray. If you are depending on the old colors for an existing, you'll have to wait. Dante is porting the Soria theme so it will probably be available in 1.0.

Here are a few things that aren't missing but that I get questions on often:

  • FloatingPane: this has been ported to DojoX, but I think most people will want to use TooltipDialog or Dialog for their needs. The big difference between Dialog and FloatingPane is that Dialog sizes automatically to the content whereas FloatingPane has manual resizing.
  • MenuBar: I think you can use ToolBar instead. But it doesn't have keyboard navigation.

By the way, here are some Dojo core features missing:

  • before and around advice (for dojo.event.connect)
  • explode animation