ExtJS LUX components design can be found at:

https://app.zeplin.io/project/5970b366bee38cf87b2de932

ExtJS LUX live components can be found at:

http://10.156.44.66/wfo/ui-debug/index.html?modules=AppShellTest,Foundation,FoundationTest&#wsm[ws]=extJSKitchenSinkLux

(blue star) Specifications

Component

CSS Class

Class added with component

Screenshot

Usage Example

Text field

{
    xtype: 'textfield'
}

Search field

as-searchfield

{ 
xtype: 'textfield',
emptyText: 'Find',
cls: 'as-searchfield',
triggers: {
	searchTrigger: {
        	cls: Ext.baseCSSPrefix + 'form-search-trigger',
                handler: function () {
                	alert('Search activated');
                }
        }
}

Combo box

(as-combo)

 {
      xtype: 'combo',
      store: ['item1', 'item2', 'item3'],
  }

Dropdown/Menu

(as-combomenu)

{
  xtype: 'combo',
  showSplitter: false,
  editable: false,
  store: ['item1', 'item2', 'item3'],
}

Icon buttons

as-icon-btn

Toggle button

as-togglebutton

Date field

(as-date-field)

{
  xtype: 'datefield'
}

Time field

(as-time-field)

{
  xtype: 'timefield'
}

Number field

(as-number-field)

{
  xtype: 'numberfield'
}

Split button

(as-split-btn)

{
  xtype: 'splitbutton',
  text: 'Click',
  menu: {
    items: [{
      text: 'item1'
      }, {
      text: 'item2'
     }]
   }
}

Primary button

as-btn-primary

{
  xtype: 'button',
  text : 'Submit',
  cls: 'as-btn-primary'
}

Info message box

as-msgbox and as-msgbox-info

Help message box

as-msgbox and as-msgbox-help

Error message box

as-msgbox and as-msgbox-error

Warning message box

as-msgbox and as-msgbox-warning

Default message box

as-msgbox

Tooltips

{
    xtype: 'label',
    id: 'tooltipCmp',
    text: 'Hover to show tooltip',
    listeners: {
        'afterrender':  function () {
            Ext.create('Ext.tip.ToolTip', {
                target: 'tooltipCmp',
                title: 'Tooltip Header',
                html: 'Aliquam sollicitudin, tincidunt mi volutpat semper'
            });
        }
    }
}

Error tooltip

(as-tooltip-error)

{
    xtype: 'label',
    id: 'tooltipCmp',
    text: 'Hover to show tooltip',
    listeners: {
        'afterrender':  function () {
            Ext.create('Ext.tip.ToolTip', {
                target: 'tooltipCmp',
                toolTipType: 'error',
                title: 'Tooltip Header',
                html: 'Aliquam sollicitudin, tincidunt mi volutpat semper'
            });
        }
    }
}

arning tooltip

(as-tooltip-warning)

{
    xtype: 'label',
    id: 'tooltipCmp',
    text: 'Hover to show tooltip',
    listeners: {
        'afterrender':  function () {
            Ext.create('Ext.tip.ToolTip', {
                target: 'tooltipCmp',
                toolTipType: 'warning',
                title: 'Tooltip Header',
                html: 'Aliquam sollicitudin, tincidunt mi volutpat semper'
            });
        }
    }
}

Info tooltip

(as-tooltip-info)

{
    xtype: 'label',
    id: 'tooltipCmp',
    text: 'Hover to show tooltip',
    listeners: {
        'afterrender':  function () {
            Ext.create('Ext.tip.ToolTip', {
                target: 'tooltipCmp',
                toolTipType: 'info',
                title: 'Tooltip Header',
                html: 'Aliquam sollicitudin, tincidunt mi volutpat semper'
            });
        }
    }
}

Help tooltip

(as-tooltip-help)

{
    xtype: 'label',
    id: 'tooltipCmp',
    text: 'Hover to show tooltip',
    listeners: {
        'afterrender':  function () {
            Ext.create('Ext.tip.ToolTip', {
                target: 'tooltipCmp',
                toolTipType: 'help',
                title: 'Tooltip Header',
                html: 'Aliquam sollicitudin, tincidunt mi volutpat semper'
            });
        }
    }
}

(blue star) Additional guidance

Content

  • Provide component-specific guidance on content, such as punctuation rules, standard labels, etc.

Accessibility

  • Provide component-specific best practices for accessibility.

Mobile

  • Provide guidance on how to apply this component in mobile environments.

Best practices

  • If there are industry standards for this component, list them in this section. Include "do" and "don't" examples to illustrate each point.

Related

  • List related components or patterns. Include links whenever possible.