is there any text/number field configs to handle min-value, max-value, min-length and max-length?

is there any configs to handle min-value, max-value, min-length and max-length or we need to handle at dom level on after-render.

NOTE:
This we need in datatable cell editing functionality.

Comments

  • edited February 20

    Hello @webix_B_123 ,
    As a solution you can use onAfterEditStart event and set max-length attribute:

    onAfterEditStart:function(){
      this.getEditor().getInputNode().setAttribute("maxlength", 8)
    }
    

    Also you can try to attach the onBeforeEditStop event and check whether the value that is going to be saved is numeric.
    Please take a look at the snippet:
    https://snippet.webix.com/jsccgyun

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion