Sha256: b327385d329c2edbf0056775ad4e43c877940007dbc0698d273a5f66c5f63667

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

Ext.define('FastUI.view.vfield.VBoolean',{
    extend: 'Ext.form.field.Checkbox',
    valueObject: {},
    winCtx:{},
    winId:0,
    rest:{},

    inputValue: 'true',
    uncheckedValue: 'false',
    initComponent:function(){
        this.fieldLabel = this.getFValue('title');
        this.name =  this.rest.getTableName() + '[' + this.getFValue('name') + ']';
        this.disabled = this.getFValue('readonly') || false;
        this.allowBlank = this.getFValue('required') || true;
        this.width = this.getFValue('width') || 650;
        this.vtype = this.getFValue('vtype');
        this.callParent();
    },
    getFValue:function (key) {
        return this.valueObject[key] || '';
    }
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastui-0.1.8 app/assets/javascripts/fastui/app/view/vfield/VBoolean.js
fastui-0.1.7 app/assets/javascripts/fastui/app/view/vfield/VBoolean.js
fastui-0.1.6 app/assets/javascripts/fastui/app/view/vfield/VBoolean.js