Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-7957

Introduce layout options nested component class for item layout properties

    Details

    • Similar issues:
      KULRICE-12607Table Layout in KRAD Library broken
      KULRICE-7888Css box layout classes are appearing more than once in items of a collection
      KULRICE-9956Table Layouts - MultiRow bombs out to exception report
      KULRICE-11685Improve grid layout responsiveness and configuration
      KULRICE-7589applyDefaultCellWidths property on table layout manager is not working properly
      KULRICE-13271Item Css demo is not working in Box Layout Manager demo
      KULRICE-9652Add layout & grid classes to UIF
      KULRICE-8409Same height box layout support for Horizontal box layouts
      KULRICE-8420Horizontal layout does not work within a collection item
      KULRICE-4725Provide more default layout options and ability to specify custom layout
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Currently in order for layout properties to be specified on group items they must be added to component base. This is confusing (and bad design) since they properties only apply when that layout manager is applied.

      Instead we can introduce a nested property of ComponentBase that will be of type LayoutItemOptions. The concrete subclass will be created by calling the layout manager getLayoutItemOptions method for the layout manager defined on a group. This will happen during the bean post processing.

      The concrete subclass will be:

      GridLayoutItemOptions
      BoxLayoutItemOptions
      TableLayoutItemOptions
      StackedLayoutItemOptions

      Properties will then be specified in the XML with layoutItemOptions.colSpan (for nested) or by the nested bean (in which case the correct parent must be selected):

      <property name="layoutItemOptions">
      <bean parent="TableLayoutItemOptions">
      <property name="colSpan" value="2"/>
      </bean>
      </property>

        Issue Links

          Activity

          Hide
          Jessica Coltrin (Inactive) added a comment -

          moving non-blocker and non-critical m4 Jiras to 2.2-backlog

          Show
          Jessica Coltrin (Inactive) added a comment - moving non-blocker and non-critical m4 Jiras to 2.2-backlog
          Hide
          Jerry Neal (Inactive) added a comment -

          Not sure if this is the best direction

          Show
          Jerry Neal (Inactive) added a comment - Not sure if this is the best direction

            People

            • Assignee:
              Unassigned
              Reporter:
              Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel