SingleRender¶
-
class
webix.
SingleRender
(data)¶ Arguments: - data (object) – A configuration object
Singlerender component.
References¶
- helpers
proto()
,template()
,type()
.- mixins
AtomRender()
.
Referenced by¶
- mixins
Scrollable()
.- views
property()
,tooltip()
.
External references¶
Code¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | webix.SingleRender=webix.proto({
template_setter:function(value){
this.type.template=webix.template(value);
},
//convert item to the HTML text
_toHTML:function(obj){
var type = this.type;
return (type.templateStart?type.templateStart(obj,type):"") + type.template(obj,type) + (type.templateEnd?type.templateEnd(obj,type):"");
},
customize:function(obj){
webix.type(this,obj);
}
}, webix.AtomRender);
|