icon

class webix.ui.icon(data)
Arguments:
  • data (object) – A configuration object

Icon view.

References

views
button().
helpers
protoUI().

External references

Official documentation page.

Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
webix.protoUI({
    name:"icon",
    $skin:function(){
        this.defaults.height = webix.skin.$active.inputHeight;
    },
    defaults:{
        template:function(obj){
            return "<button type='button' "+" style='height:100%;width:100%;' class='webix_icon_button'><span class='webix_icon fa-"+obj.icon+" '></span>"+
                (obj.badge ? "<span class='webix_badge'>"+obj.badge+"</span>":"")+
                "</button>";
        },
        width:33
    },
    _set_inner_size:function(){

    }
}, webix.ui.button);