Allow parent nodes to provide CSS styleable properties for child nodes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: javafx
    • None

      Controls like HBox, VBox and GridPane have several properties that can be set on the child via static accessors. They store these properties, like `hgrow`, `column-index` etc in the child's properties map under a specific key.

      However, this makes it hard to style these controls from CSS. Settings like margins, grow and fill are typically choices that should be configurable from CSS.

      Proposal:
      - Modify Styleable to have a `getChildCssMetaData` method for providing CSS styleables applicable to any direct children
      - Instead of storing key/value pairs in the properties map, store key/property pairs, where property is a styleable property created on demand
      - Modify CssStyleHelper to take these additional styleables in to account

            Assignee:
            John Hendrikx
            Reporter:
            John Hendrikx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: