KEMBAR78
Ext JS Meetup Presentation | ZIP
Ext JS Meetup
  2/23/2010
Thanks!

• General Dynamics - Location
• Will McGinnis - Logistics
• Ext JS - Pizza!
File Structure


 • KISS - Keep it Simple...
 • Follow the same convention as the
   core Ext CSS
Including Files
Warning

•DO NOT EDIT
 •
 EXT-ALL.CSS
 •
 EXT IMAGES
Style Heirarchy
•   theme

•   component properties

    •   cls

    •   ctCls

    •   defaults

        •   bodyStyle : ‘padding : 15px’

    •   component renderer function

    •   component template override
CSS Naming
         Conventions
• x-<component_name>-<position>
• Panel styles for left, middle, right
 • x-panel-ml
 • x-panel-mc
 • x-panel-mr
Learning Curve:Firebug
Themes
• any/all components
• lowest level: CSS & images
• mid-level:
 • settings: icons in components
 • renderers
• finest-level: templates
Inline-styling

• cls
 • adds CSS class to component
• ctCls
 • adds CSS class to component container
• disabledClass
Sprites

• follow the component
  struture
• left & right
• top & bottom
Sprites
icons
Renderers


• Renderers
 • function to interpret data values
‘Injecting Classes’ for
        Context
Renderers

• Property on components allowing a
  function to alter output based on the value
  from the record
Templates

• The base HTML for the Ext component

Ext JS Meetup Presentation