Label Class

Namespace: Ext.form

Base Types

System.Object

Constructors

Name Description
Label(LabelConfig)
Label()

Methods

Name Description
doSetAlign(object) Updates the {@link #align} configuration by changing the {@link #docked} configuration on the component @private
updateText(object) Updates the {@link #text} configuration

Properties

Name Description
extend The Label class is a simple component used to render the labels for each field in your Sencha Touch application. It is usually created for you when you create a field, like this: Ext.create('Ext.field.Text', { label: 'Your Name', value: 'Ed Spencer' }); You can also specify a few more configurations for a label by passing a label object instead of a string: Ext.create('Ext.field.Text', { label: { {@link #text}: 'Your Name', {@link #align}: 'right', {@link #width}: '50%' }, value: 'Ed Spencer' }); It's rare to want to create a label without a form field but you can do it like this: Ext.create('Ext.form.Label', { text: 'My Label', width: 100 });
xtype The Label class is a simple component used to render the labels for each field in your Sencha Touch application. It is usually created for you when you create a field, like this: Ext.create('Ext.field.Text', { label: 'Your Name', value: 'Ed Spencer' }); You can also specify a few more configurations for a label by passing a label object instead of a string: Ext.create('Ext.field.Text', { label: { {@link #text}: 'Your Name', {@link #align}: 'right', {@link #width}: '50%' }, value: 'Ed Spencer' }); It's rare to want to create a label without a form field but you can do it like this: Ext.create('Ext.form.Label', { text: 'My Label', width: 100 });
© Copyright 2005-2011 SharpKit. All rights reserved.