How to bring the buttons to center postion

Hi,

I have a webix code like below.

webix.ui({
                  view:"window",height:900,width:900,id:"Movie Alert",
                  head:"Movie Data Warning...!",
                  close:false,hidden:false,position:"center",
                  body:{
                  view :"form",id:"priceform",height:900,width:1200,
                   elements:[
                           {
                            view:'layout',
                              cols:[
                                  {view:'button',label:'OK',click:function(){
                                       
                                  }},
                                   {view:'button',label:'Cancel',click:function(){
                                   $$('Movie Alert').hide()
                                   }}
                                ],
                             }
                   ]
                  }
               })

I want to have buttons in the center how can i do that

@Nastja

Could you help please?

Hello @prasadraju ,

I want to have buttons in the center

Just try to use spacer { }
Sample: https://snippet.webix.com/efqbfze9

Or you can use ui.align with a align:"middle,center"
Sample: https://snippet.webix.com/0vz9b242