Skip to content

Instantly share code, notes, and snippets.

@tomdye
Last active September 10, 2019 17:27
Show Gist options
  • Save tomdye/96bef02e5ad8646f5cd66781429fa379 to your computer and use it in GitHub Desktop.
Save tomdye/96bef02e5ad8646f5cd66781429fa379 to your computer and use it in GitHub Desktop.
Widgets 7?

Widgets 7 final

Goals

  • Material theme
  • Dojo widgets to use cli exclusively
  • Expansion of Widgets
  • Improve semantics around select/drop down

Material Theme

Expansion of Widgets

Typeahead

Datepicker

List + Item

Sticky Header

Menu

A menu that can be used within a popup / drop down or context menu. This would be used by other widgets including typeahead / select etc to show results.

  • This will replace Listbox
  • use body tag

Expansion panel

Re-work of existing title-pane. Should be capable of containing any title / main renderers.

Sticky sub headers for list content

Stepped wizard

Chips

Form

Bijits

Pre built opinionated layouts

Login form

Confirmation Dialog

Different item types

Different list types

Header types

Existing widget enhancement

Radio / Check box group semantics

Granular versions of text-inputs

  • email input
  • number input
  • phone input

Deprecate split pane

split Switch out of checkbox

Revisit toolbar

Hangovers

  • Normalize widget APIs
    • onValue
      • switch to onValue as main reactive callback instead of mix of onInput / onChange.
    • onKey
      • Use onKey instead of keyPress / keyDown etc callbacks.
    • hover events
      • Use pointer events for onOver callback which will replace existing uses of onHover. This will give a consistent callback and normalise across different pointer types.
      • Use pointer events for onOut callback which will indicate that a pointer has left the vicinity of the widget.
    • Remove older legacy callbacks such as onInput / onMouseDown etc...
    • Stop passing value to onBlur/onFocus/onclick to ensure that developers use the onValue callback to determine the most upto date widget value.
    • Stop extending base interfaces and remove them/
    • Stop allowing Inputproperties etc to be passed down to child widgets, enforce a parent interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment