CSS Class | Class added with component | Screenshot | Usage Example |
---|
Text field | | | Image Modified | Code Block |
---|
{
xtype: 'textfield'
} |
|
Search field | as-searchfield | | Image Modified | Code Block |
---|
{
xtype: 'textfield',
emptyText: 'Find',
cls: 'as-searchfield',
triggers: {
searchTrigger: {
cls: Ext.baseCSSPrefix + 'form-search-trigger',
handler: function () {
alert('Search activated');
}
}
} |
|
Combo box | (as-combo) | | Image Modified | Code Block |
---|
{
xtype: 'combo',
store: ['item1', 'item2', 'item3'],
} |
|
Dropdown/Menu | (as-combomenu) | | Image Modified | Code Block |
---|
{
xtype: 'combo',
showSplitter: false,
editable: false,
store: ['item1', 'item2', 'item3'],
} |
|
Icon buttons | as-icon-btn | | Image Modified | Code Block |
---|
{
xtype:'button',
glyph: 'xe827@lux-theme-icon'
} |
|
Toggle button | as-togglebutton | | Image Modified | Code Block |
---|
{
xtype: 'button',
glyph: 'xe8bf@lux-theme-icon',
text: 'Toggle Button',
scale: 'medium',
enableToggle: true,
componentCls: 'as-togglebutton'
} |
|
Date field | (as-date-field) | | Image Modified | Code Block |
---|
{
xtype: 'datefield'
} |
|
Time field | (as-time-field) | | Image Modified | Code Block |
---|
{
xtype: 'timefield'
} |
|
Number field | (as-number-field) | | Image Modified | Code Block |
---|
{
xtype: 'numberfield'
} |
|
Split button | (as-split-btn) | | Image Modified | Code Block |
---|
{
xtype: 'splitbutton',
text: 'Click',
menu: {
items: [{
text: 'item1'
}, {
text: 'item2'
}]
}
} |
|
Primary button | as-btn-primary | | Image Modified | Code Block |
---|
{
xtype: 'button',
text : 'Submit',
cls: 'as-btn-primary'
} |
|
Info message box | (as-msgbox and as-msgbox-info) | | Image Modified | Code Block |
---|
xtype: 'button',
text: 'click!',
listeners: {
click: function () {
var myMsg = Ext.Msg.showInfo({
message: 'Morbi in faucibus lorem. Aliquam sollicitudin, mi tincidunt volutpat semper, neque nibh pulvinar sapien',
fn : Ext.emptyFn
});
}
} |
|
Help message box | (as-msgbox and as-msgbox-help) | | Image Added | Code Block |
---|
xtype: 'button',
text: 'click!',
listeners: {
click: function () {
var myMsg = Ext.Msg.showHelp({
message: 'Morbi in faucibus lorem. Aliquam sollicitudin, mi tincidunt volutpat semper, neque nibh pulvinar sapien',
fn : Ext.emptyFn
});
}
} |
|
Error message box | (as-msgbox and as-msgbox-error) | | Image Modified | Code Block |
---|
xtype: 'button',
text: 'click!',
listeners: {
click: function () {
var myMsg = Ext.Msg.showError({
message: 'Morbi in faucibus lorem. Aliquam sollicitudin, mi tincidunt volutpat semper, neque nibh pulvinar sapien',
fn : Ext.emptyFn
});
}
} |
|
Warning message box | (as-msgbox and as-msgbox-warning) | | Image Modified | Code Block |
---|
xtype: 'button',
text: 'click!',
listeners: {
click: function () {
var myMsg = Ext.Msg.showWarning({
message: 'Morbi in faucibus lorem. Aliquam sollicitudin, mi tincidunt volutpat semper, neque nibh pulvinar sapien',
fn : Ext.emptyFn
});
}
} |
|
Default message box | (as-msgbox) | | Image Modified | Code Block |
---|
xtype: 'button',
text: 'click!',
listeners: {
click: function () {
Ext.Msg.show({
title: "title",
message: "message text here",
buttons: Ext.MessageBox.OKCANCEL,
icon: Ext.MessageBox.INFO,
fn: Ext.emptyFn
});
}
} |
|
Tooltips | | | Image Modified Image Modified
| Code Block |
---|
{
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) | | Image Modified |