Hi team,
Is it possibe to set align right to combo options in a datatable please ?
Hi team,
Is it possibe to set align right to combo options in a datatable please ?
you need to create custom editor or implement a patch like this.
on:{
onAfterEditStart: function(cell){
if(cell.column == "vat"){ [].forEach.call(this.getEditor().getPopup().$view.getElementsByClassName("webix_list_item"), item=>{
item.style.textAlign = "right";
})
}
}
}
thankyou very much @intregal
https://snippet.webix.com/bjpybrq3
And is it possible to righ align in the input editor field please ?
when double click on combo box, the content align left again ? what’s happened ?
@duynq2197
good catch.
this is because of rendering logic.
to prevent that we need a bit deeper implementation.
https://snippet.webix.com/36bay1hy
we need to remove class because the same popup is reused on each combo editor during app lifetime.
Love this!