Rules of coding

Here are some rules that you should seriously respect to avoid any problem using the library :
  • To all components (except Border), define an id using the t:id attribute.
  • Two css files are present : a core one and skin one. Although the attributes defined in the skin file can be overridden without impacting the component layout, we do not guarantee any modification in the core one.

Relation between Java/HTML/JavaScript/CSS

A strict relationship between the different languages was established to design each component, to ensure coherence and increase the development process.
Based on the t:id given to the component, here are the norms you can rely on :
  • If a JavaScript class is defined for the component, an instance is available through the id provided, allowing action on the component via JavaScript.
  • If the JavaScript component uses a YUI one, the YUI instance is available through a yui var contained inside the JavaScript Exanpe component instance
  • The root HTML tag id is the id given to the component.
  • Some parameters of the components can be automatically injected via properties files, based on the component id suffixed (see each component documentation).

CSS customization

CSS properties have been split between core ones (deciding the positionning) and skin ones (declaring the rendering).
Two CSS files are present :
  • exanpe-t5-lib-core.css
  • exanpe-t5-lib-skin.css
To customize our components rendering, we strongly advise you to check the skin file and override any of the CSS class that match your needs.