editors.date¶
webix.editors.
date
¶webix.editors.date helper.
Please look into the linked official documentation.
External references¶
Code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | webix.editors.date = webix.extend({
focus :function(){},
popupType:"date",
setValue:function(value){
this._is_string = this.config.stringResult || (value && typeof value == "string");
webix.editors.popup.setValue.call(this, value);
},
getValue:function(){
return this.getInputNode().getValue(this._is_string?webix.i18n.parseFormatStr:"")||"";
},
popupInit:function(popup){
popup.getChildViews()[0].attachEvent("onDateSelect", function(value){
webix.callEvent("onEditEnd",[value]);
});
}
}, webix.editors.popup);
|