Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3297

Allow for disabling of paging on select field dropdown

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.3.8
    • 5.3.6
    • forms

      Allow for the disabling of paging on the select field dropdown. From what I have seen in my investigation is that we could introduce a pageLength private member in info.magnolia.ui.form.field.definition.SelectFieldDefinition. Add the appropriate getter/setter as well. Then in the info.magnolia.ui.form.field.factory.SelectFieldFactory class we could add a line to the createFieldComponent() method which uses the setPageLength() method from com.vaadin.ui.ComboBox. Like this:

      ((ComboBox) select).setPageLength(definition.getPageLength());
      

      This would then allow a user to configure the page length to 0 which turns off paging as noted in the class com.vaadin.ui.ComboBox.

      /**
      * Holds value of property pageLength. 0 disables paging.
      */
      protected int pageLength = 10;
      

        Acceptance criteria

              mgeljic Mikaël Geljić
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: