-
Notifications
You must be signed in to change notification settings - Fork 0
Components specs
Javier Sánchez - Marín edited this page Oct 5, 2013
·
2 revisions
- Components are completely agnostic and have a single responsibility.
- Components are Responsive.
- Components support touch and mouse events.
- Components should have tests covering at least all API methods.
- Class constructors receive allways the same arguments at first:
elandoptions. - If multiple elements are passed to the Component constructor, it should take only the first one. Components should not have logic to handle multiple elements and multiple instances, it's
uick's job. - Components should not implement the following methods:
api - Components should have
initanddestroymethods. - If a Component requires CSS should include
uick-components-scssto inherit common styles. - Components should use
uick-queryfor querying the DOM. - Components should include as little CSS as possible, discard appeareance styles not needed.
- If some component needs to be responsive, write a uick module similar to: http://kumailht.com/responsive-elements/