Nebula Listbox properties

nebula listbox properties definition

ListboxProperties object

Properties

  • autoConfirm boolean

    Automatically confirm selections when clicking outside a listbox, without showing the selections toolbar.

  • checkboxes boolean

    Show values as checkboxes instead of as fields.

  • frequencyMax 'fetch'  |  ValueExpression

    frequencyMax calculation needed for histogram when not using qListObjectDef.qFrequencyMode: 'P' use an expression in the form Max(AGGR(Count([field]), [field])) (when needed) or 'fetch' that triggers an extra engine call but needed for library dimension that could change field when using the object

  • histogram boolean

    Show histogram bar. also requires (qListObjectDef.qFrequencyMode 'V' and frequencyMax) or qListObjectDef.qFrequencyMode 'P'

  • layoutOptions object

    Layout settings.

    Show layoutOptions properties
    • dataLayout 'singleColumn'  |  'grid'

      Layout mode.

    • dense boolean

      Dense mode.

    • layoutOrder 'row'  |  'column'

      Layout order. Only used when dataLayout is 'grid'

    • maxVisibleColumns object

      Max visible columns. Only used when dataLayout is 'grid' and layoutOrder is 'row'

      Show maxVisibleColumns properties
      • auto boolean

        Automatically fit as many columns as possible. Only used when dataLayout is 'grid' and layoutOrder is 'row'

      • maxColumns number

        Fixed number of max visible columns. Only used when dataLayout is 'grid' layoutOrder is 'row' and auto is false

    • maxVisibleRows object

      Max visible rows. Only used when dataLayout is 'grid' and layoutOrder is 'column'

      Show maxVisibleRows properties
      • auto boolean

        Automatically fits as many rows as possible. Only used when dataLayout is 'grid' and layoutOrder is 'column'

      • maxRows number

        Fixed number of max visible rows. Only used when dataLayout is 'grid' layoutOrder is 'column' and auto is false

  • qListObjectDef ListObjectDef
    Required
    Show qListObjectDef properties
    • frequencyEnabled boolean

      Show frequency count. also requires qListObjectDef.qFrequencyMode to be set

  • representation Representation
    Required
    Show representation properties
    • borderColor string

      Cell border color. Only used when type is 'image' and borderWidth > 0.

    • borderColorMode 'single'  |  'expression'  |  'selectionState'

      Cell border color mode. Only used when type is 'image' and borderWidth > 0.

    • borderWidth number

      Cell border width in px. Only used when type is 'image'.

    • cellBgColor string  |  object  |  ValueExpression

      Cell background color (hex string or color object when cellBgColorMode='single') or expression (when cellBgColorMode='expression'). Only used when type is 'image'.

    • cellBgColorMode 'single'  |  'expression'  |  'selectionState'

      Cell background color mode. Only used when type is 'image'.

    • cornerRadius number

      Corner radius of the image cell in pixels. Only used when type is 'image'.

    • gridGap number

      Spacing between image grid cells, as a percentage of the column width. Only used when type is 'image'.

    • Per-value image label expression. Only used when type is 'image' and imageSetting is 'label'. Stored in qExpressions with qLabel='imageLabel'.

      Show imageLabel properties
      • qValueExpression object
        Required
        Show qValueExpression properties
        • qExpr string
          Required
    • imagePosition string

      Image position within the cell. Only used when type is 'image' and imageSize is not 'stretch'.

    • imageSetting 'url'  |  'label'

      When type is 'image', choose whether the per-value expression (qExpressions.qLabel='imageUrl'/'imageLabel') provides the image URL ('url') or the image label ('label').

    • imageSize 'alwaysFit'  |  'fitWidth'  |  'fitHeight'  |  'stretch'  |  'alwaysFill'

      Image sizing mode. Only used when type is 'image'.

    • Per-value image URL expression. Only used when type is 'image' and imageSetting is 'url'. Stored in qExpressions with qLabel='imageUrl'.

    • showSelected boolean

      When type is 'image', show only selected values once a selection is applied (while selecting, all values stay visible). Set to false to keep unselected values visible.

    • Per-value subtitle expression. Only used when type is 'image' and textOverlay is not false.

    • textOverlay boolean

      Whether to render the title/subtitle overlay text. Only used when type is 'image'.

    • titleBackground boolean

      Draw a background behind the title text for legibility. Only used when type is 'image'.

    • titlePosition string

      Overlay text alignment as {vertical}-{horizontal} (e.g. 'top-left', 'center-center', 'bottom-right'). Only used when type is 'image'.

    • Per-value tooltip expression. Only used when type is 'image'.

    • type 'text'  |  'image'

      How the dimension values are presented.

  • searchEnabled boolean

    Enables search.

  • showTitle boolean

    Show title.

  • title string

    Listbox title

  • wildCardSearch boolean

    Pre-fill search input field with wildcard characters.

ListObjectDef interface

extends qix.ListObjectDef

Extends ListObjectDef, see Engine API: ListObjectDef.

Properties

  • frequencyEnabled boolean

    Show frequency count. also requires qListObjectDef.qFrequencyMode to be set

Representation interface

Representation settings for the dimension values, set on the listbox object root representation (a sibling of qListObjectDef, alongside layoutOptions).

Notes on image representation:

    • When type is 'image' the values are rendered as images. Image metadata is resolved from list-object expressions (qListObjectDef.qExpressions) using their qLabel keys.

Properties

  • borderColor string

    Cell border color. Only used when type is 'image' and borderWidth > 0.

  • borderColorMode 'single'  |  'expression'  |  'selectionState'

    Cell border color mode. Only used when type is 'image' and borderWidth > 0.

  • borderWidth number

    Cell border width in px. Only used when type is 'image'.

  • cellBgColor string  |  object  |  ValueExpression

    Cell background color (hex string or color object when cellBgColorMode='single') or expression (when cellBgColorMode='expression'). Only used when type is 'image'.

  • cellBgColorMode 'single'  |  'expression'  |  'selectionState'

    Cell background color mode. Only used when type is 'image'.

  • cornerRadius number

    Corner radius of the image cell in pixels. Only used when type is 'image'.

  • gridGap number

    Spacing between image grid cells, as a percentage of the column width. Only used when type is 'image'.

  • Per-value image label expression. Only used when type is 'image' and imageSetting is 'label'. Stored in qExpressions with qLabel='imageLabel'.

    Show imageLabel properties
    • qValueExpression object
      Required
      Show qValueExpression properties
      • qExpr string
        Required
  • imagePosition string

    Image position within the cell. Only used when type is 'image' and imageSize is not 'stretch'.

  • imageSetting 'url'  |  'label'

    When type is 'image', choose whether the per-value expression (qExpressions.qLabel='imageUrl'/'imageLabel') provides the image URL ('url') or the image label ('label').

  • imageSize 'alwaysFit'  |  'fitWidth'  |  'fitHeight'  |  'stretch'  |  'alwaysFill'

    Image sizing mode. Only used when type is 'image'.

  • Per-value image URL expression. Only used when type is 'image' and imageSetting is 'url'. Stored in qExpressions with qLabel='imageUrl'.

  • showSelected boolean

    When type is 'image', show only selected values once a selection is applied (while selecting, all values stay visible). Set to false to keep unselected values visible.

  • Per-value subtitle expression. Only used when type is 'image' and textOverlay is not false.

  • textOverlay boolean

    Whether to render the title/subtitle overlay text. Only used when type is 'image'.

  • titleBackground boolean

    Draw a background behind the title text for legibility. Only used when type is 'image'.

  • titlePosition string

    Overlay text alignment as {vertical}-{horizontal} (e.g. 'top-left', 'center-center', 'bottom-right'). Only used when type is 'image'.

  • Per-value tooltip expression. Only used when type is 'image'.

  • type 'text'  |  'image'

    How the dimension values are presented.

ValueExpression object

Properties

  • qValueExpression object
    Required
    Show qValueExpression properties
    • qExpr string
      Required