Clear Up
SharpKit Reference

Display Class

A display-only text field which is not validated and not submitted. This is useful for when you want to display a value from a form's loaded data but do not want to allow the user to edit or submit that value. The value can be optionally HTML encoded if it contains HTML markup that you do not want to be rendered.

If you have more complex content, or need to include components within the displayed content, also consider using a Ext.form.FieldContainer instead.


    Ext.create('Ext.form.Panel', {
            renderTo: Ext.getBody(),
            width: 175,
            height: 120,
            bodyPadding: 10,
            title: 'Final Score',
            items: [{
            xtype: 'displayfield',
            fieldLabel: 'Home',
            name: 'home_score',
            value: '10'
            }, {
            xtype: 'displayfield',
            fieldLabel: 'Visitor',
            name: 'visitor_score',
            value: '11'
            buttons: [{
            text: 'Update'

Namespace: Ext.form.field



Name Description
htmlEncode True to escape HTML in text when rendering it. Defaults to: false
renderer A function to transform the raw value for display in the field. The function will receive 2 arguments, the raw value and the Ext.form.field.Display object.
scope The scope to execute the renderer function. Defaults to this.
© Copyright 2005-2011 SharpKit. All rights reserved.