The core team decided at the latest jQuery meeting to try and fast
track some of the more common plugins (button, menu, etc.) but with
the overall approach of designing the most streamlined and minimal
implementation that others could extend, re-use and re-mix. Looking at
the button page, there were more than 10 script options and we wanted
to dramatically simplify this to make testing and maintenance easier.
We also felt that we could embrace progressive enhancement to a
greater extent to allow the actual HTML markup to drive what were
originally options.
For example, instead of needing an option for a toggle-style button,
we should really use a checkbox in the foundation markup and then have
the script enhance it into a button that toggles it's state. If the
checkbox's checked attribute is "checked" in the markup, it can be set
to active when the plugin initializes. Instead of a disabled plugin
option, we check for the disabled attribute on a button or checkbox
and disable the button to match the markup.
One big advantage of this approach is that the html markup is not only
highly descriptive (which simplifies scripting options), it is also
100% usable if JS isn't present. For example, a set of divs styles to
look like a single-select toggle set of buttons (like a button toggle
for viewing by list or grid for example) which is un-usable without
scripts, we can have 2 radiobuttons that more closely represent this
interaction in HTML, then transform it into the button toggles when
button() is called on it.
We appreciate the time you've spent on this to date and do want you to
help us, especially on working out the styling trickery. We've hope
you agree that it's a better direction, even if it means that some of
your work won't be used. Whether this is pulled into a single plugin
or multiple is still TBD (I think).
_t
todd.parker .: . filament group inc.
102 south street #3 boston, ma 02111
email +
todd@filamentgroup.comphone + 617.482.7120
fax + 617.687.0212
web + filamentgroup.com