jQWidgets Forums

jQuery UI Widgets Forums Editors MaskedInput RTL Mask Input

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • RTL Mask Input #20866

    Bentechsoft
    Participant

    Hi,

    I would like to create a right to left input box that as a mask.

    The mask would be used for entering time 00h00

    Let’s say I want the user to input 1h30… I want the user to be able to enter 1 3 0 and see the result as 01h30.

    I thought the mask input would allow me to do that but unfortunatelly, when I select “RTL” the mask gets inverted as well.

    Is there a way to have input flow from right to left but keep the mask as is.   The best example I can give you is when you go to a bank machine.  You don’t have to type in the leading 0 is if you want to withdraw 1$  you just type 1, 0, 0, to input 1.00$

    I want the same thin with my input field…  You want 1h30 you type 1,3,0 not 0, 1, 3, 0.

    Can you help me figure out something… Maybe with event detech the input and place the character at the end programmatically.   It would give the impress of RTL

    Thank you

     

     

    RTL Mask Input #20887

    Peter Stoev
    Keymaster

    Hi Bentechsoft,

    The RTL input for the MaskedInput comes from the browser. We just synchronize the appropriate attributes of the HTML Input tag with the JS properties. The Mask is not inverted. You can still type 1, 3, 0, 2 starting from the right-most edit position and the widget in RTL mode will display exactly: 13h02 as expected.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    RTL Mask Input #20894

    Bentechsoft
    Participant

    Ok, I see what you mean… I was a bit confused by the behavior.

    Is there a way to force the caret to the right most position in the field?

    Thank you

    RTL Mask Input #21046

    Bentechsoft
    Participant

    Hi Peter,

    If you look that the demo for jqxNumberInput, the way the numbers are entered is exactly the way I would like RTL mask to work.

    You enter the number 1 by 1 and the flow is from right to left.

    Here are 2 questions:

    1- Would it be possible to have the same behaviour as jqxNumberInput but with MaskEdit (RTL is not exactly the same)

    2- Would it be possible to add an new number type to the jqxNumberInput wich would be time.

    What I really want it to be able to enter 1, 3, 0 and in a field that could accept 00h00 but without having to enter the leading zeros. With the MaskInput, whether or not I use RTL I have to enter 0, 1, 3, 0 otherwize I endup with 13h00. ( I want to have 01h30)

    Here’s the sequence

    1 = 00h01
    3 = 00h13
    0 = 01h30

    Is there a way to achieve that?

    Thank you

    RTL Mask Input #21057

    Peter Stoev
    Keymaster

    Hi,

    It is not possible to use jqxNumberInput as jqxMaskedInput. If you do not like the browser’s default RTL support for INPUT tags, you can just align the Masked Input’s text to right if that is Ok.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.