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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • core
    • None
    • 2.286 released 30 Mar 2021, 2.289.1

    Description

      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">
      

      Attachments

        Issue Links

          Activity

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: