You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addy Osmani edited this page Jan 16, 2014
·
10 revisions
Element Scratch Space
The WebComponents.org Elements scratch-space can be used to discuss your implementations, patterns and APIs for different types of elements and widgets. Select a category below to add your thoughts or if there's a category missing, edit this page to add one.
An example of the type of discussion that might happen on an category page is about how APIs for a particular type of Web Component might be structured. Like, Tabs.
polymer-ui-tabs allows a developer to define a tab component by specifying a number of child tags (e.g <span>s) within a polymer-ui-tabs element:
As we can see, both components support an attribute for setting the selected index here. polymer-ui-tabs uses selected whilst el-selectable uses selectedIndex. In this case selected is more terse and is easier to type out and remember. If el-selectable considered revising their API to use selected in the future, it would be easier to switch between element types more easily without that much of a rewrite.
Note: once a change has been committed, a member of the WebComponents.org team will review it and push it up to the site as long as it meets our contribution criteria.