• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[ANSWERED] Trigger Field ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [ANSWERED] Trigger Field ?

    I have the following config for a triggerfield. How can I get rid of the spinner for inputType:'number'?

    xtype: 'triggerfield',
    hideLabel: true,
    inputType: 'number',
    emptyText: 'Ticket#',
    enableKeyEvents: true,
    enforceMaxLength: true,
    maxLength: 10,
    triggerCls: 'x-form-clear-trigger'

    Seems like I might need to leave off the inputType and put in a regEx to only allow numbers, maybe? Hate regEx.
    If so, would the regEx be /0-9/ ?

  • #2
    Why not use numberfield instead of triggerfield?

    Comment


    • #3
      because I want the little circle-x icon to clear the field
      x-form-clear-trigger
      and
      onTriggerClick: function(){}

      Comment


      • #4
        Try using "maskRe:/[0-9.]/" config and remove inputType . It should restrict your input to numbers.

        Comment

        Working...
        X