JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Text Boxes & Inputs smart text box don't limitate the number of introduced chars

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #101805
    tullio0106
    Member

    I created a smart-text-box with a maxLength value (2).
    When I introduce data I’m able to introduce as many chars as I want.
    Why ?
    Ho can I limitate the number of introduced chars ?
    Tks

    <smart-text-box class="elemento_testo_valore" value="0" name="e708213883"  maxLength="2">

    #101808
    yavordashew
    Member

    Hi tullio0106,
    This behavior is normal because you haven’t set the max-length property properly.
    When setting a property in your HTML file you have to use kebab casing(for a property with more than one word) like so:
    <smart-text-box class="elemento_testo_valore" value="0" name="e708213883" max-length="2"></smart-text-box>
    Please, do not hesitate to contact us if you have any additional questions.
    Best regards,
    Yavor Dashev
    Smart UI Team
    https://www.htmlelements.com/

    #101810
    tullio0106
    Member

    Tks for Your help.
    The bug is, may be, in the API documentation where the parameter is indicated as maxLength as I wrote.
    I’ll try with max-length.
    Tks

    #101813
    tullio0106
    Member

    Anyway it works
    Tks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.