primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Few HTMLDOM functions are unavailable for pInputNumber component

Open RAMKI2 opened this issue 2 years ago • 0 comments

Describe the feature you would like to see added

  • Few functions like autoFocus are unavailable to use with pInputNumber. This has to be enhanced.

  • Currency style inputs are available with pInputNumber, great, but instead of starting typing currencies from front, there are few scenerios, where we actually have to start filling with the cents positions (1's,10's, 100's...... so on). Keeping the pointer always at end.

  • Example

    • initialy, 00.00 - Upon 1st number key press (say 2), value should be 00.02
    • next, press 5 - update value to 00.25
    • next press (637) - value should be 256.37 (push from right to left)

Cents/ decimals limited to 2 fractions, but dollar values are optional entries.

If masked correctly and pointer positions are managed well, please name it as "RTL currency input" @

Is your feature request related to a problem?

Found this as a difficulty, while handling casino transaction input cases.

Describe the solution you'd like

  • pointer should always point to the end of the selection range.
  • Masks should allow optional characters at front.

This helps great for applications where mouse usage is minimal.

Describe alternatives you have considered

IMASK.js

Additional context

No response

RAMKI2 avatar Jul 26 '22 22:07 RAMKI2