Sha256: fd64b9b5b36f9029525c9e6070ce50056b975830d73c961340d6090fdfaa78fd

Contents?: true

Size: 843 Bytes

Versions: 3

Compression:

Stored size: 843 Bytes

Contents

include('../view.js');

uki.view.declare('uki.more.view.Form', uki.view.Container, function(Base) {
    
    this._setup = function() {
        Base._setup.call(this);
        uki.extend(this, {
            _method: 'GET',
            _action: ''
        });
    };
    
    this.action = uki.newProp('_action', function(action) {
      this._dom.action = this._action = action;
    });
    this.method = uki.newProp('_method', function(method) {
      this._dom.method = this._method = method;
    });
    
    this.submit = function() { this._dom.submit(); }
    this.reset = function() { this._dom.reset(); }
    
    this._createDom = function() {
        this._dom = uki.createElement('form', Base.defaultCss);
        this._initClassName();
        this._dom.action = this._action;
        this._dom.method = this._method;
    };
   
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
uki-1.1.4 frameworks/uki/src/uki-more/more/view/form.js
uki-1.1.3 frameworks/uki/src/uki-more/more/view/form.js
uki-1.1.2 frameworks/uki/src/uki-more/more/view/form.js