Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63855

Support 'min' and 'max' values in the <f:number> tag

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • 2.286 released 30 Mar 2021, 2.289.1

      The <f:number> tag should support the 'min' and 'max' properties that <input type="number"> supports.

      This will provide a modicum of client-side validation for constrained number fields, and limit the stepper buttons in the configuration UI, giving the user a stronger hint about the range of acceptable values.

      Example:

       

      <f:entry field="foo">
        <f:number min="10" max="100" />
      </f:entry>

      Will be rendered into an input tag like:

      <input type="number" ...other properties... min="10" max="100">
      

          [JENKINS-63855] Support 'min' and 'max' values in the <f:number> tag

          Chris Kilding created issue -
          Benny Cheng made changes -
          Assignee New: Benny Cheng [ benebsiny ]
          Benny Cheng made changes -
          Attachment New: 9a59q-vjd1e.gif [ 53840 ]
          Benny Cheng made changes -
          Comment [ !9a59q-vjd1e.gif! ]
          Benny Cheng made changes -
          Remote Link New: This issue links to "Pull Request (Web Link)" [ 26457 ]
          Benny Cheng made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Benny Cheng made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Mark Waite made changes -
          Released As New: 2.286 released 30 Mar 2021
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]
          Mark Waite made changes -
          Released As Original: 2.286 released 30 Mar 2021 New: 2.286 released 30 Mar 2021, 2.289.1

            benebsiny Benny Cheng
            chriskilding Chris Kilding
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: