Erase icon in a datatable text editor

Hi team,

Is it possible to put an icon to erase the cell at the rigth of a datatable text editor just at the moment entered in the cell please ?

https://snippet.webix.com/yelm0eg4

Regards,
Xavier

a litle bit like this
https://snippet.webix.com/ifrg2pae

but in a datatable cell

it could be at the left of the cell too

Hi man :slight_smile:

Not clean, but you can play with something like this

https://snippet.webix.com/hnm2ym7x

Hi @franck34

Thank you very much

Here i changed the CSS
https://snippet.webix.com/ahzf6w7s

How set the focus after the erase button clickked please ?

hi, just add input.focus();

input.value = '';
input.focus();

fine !

https://snippet.webix.com/jjk14hey

Thankyou very muck @franck34

1 Like

Cool.

You can use mdi icons btw

const resetButton = webix.html.create(
  "div",
  { class:"resetButton" },
  '<span class="mdi mdi-close"></span>'
);

Perfect @franck34 !

https://snippet.webix.com/3133f8qi

1 Like