Adding icon infront of the title in window

Hi,

I have my webix code like below.

webix.ui({
   view :"window",height:150,width:600,id:"Movie Alert",
   head:"Movie Data...!",
  close:false,hidden:false,position:"center",
                  body:{
                      
                     view : "form",
                     elements:[
                       {
                         view :"layout",
                         
                         
                         rows:[
                          { view:"label", label: "Are you sure you want to Book Movie....?", align:"center"},
                           {
                             cols:[
                               {view:"button",label:"Yes"},
                               {view:"button",label:"No"}
                               ]
                           }
                           ]
                       }
                       ]
                 }
 
});

I want to add icon:“wxi-alert” in front of the label “Are you sure you want to Book Movie…?”

How can i do that?

hi got it

webix.ui({
   
   view :"window",height:150,width:600,id:"Movie Alert",
   head:"Movie Data...!",
  close:false,hidden:false,position:"center",
                  body:{ 
                     view : "form",
                     elements:[
                       {
                         view :"layout",
                         rows:[                           
                          { view:"label", label: "<span class='webix_icon wxi-alert'></span>Are you sure you want to Book the movie?", align:"center"},
                           {
                             cols:[
                               {view:"button",label:"Yes"},
                               {view:"button",label:"No"}
                               ]
                           }
                           ]
                       }
                   ]
                 }
});

Hi,

Yes, that’s the right solution. It possible to set icons to widgets as span class=“webix_icon wxi-name”: https://docs.webix.com/desktop__icon_types.html#defaulticons
Also, maybe it will be more comfortable for you to use Modal message boxes.