Nebula Button

Action button generic object definition

Download specification

properties object

extends EngineAPI.GenericObjectProperties

Properties

  • version string
    Required

    Current version of this generic object definition.

  • showTitles boolean

    Show title for the visualization

  • title string

    Visualization title

  • subtitle string

    Visualization subtitle

  • footnote string

    Visualization footnote

  • useEnabledCondition boolean
    Required

    Controlling if the button should use an expression to determine if it is enabled or not

  • enabledCondition number  |  EnabledExpression
    Required

    Number or expression evaluating to number, 0 means disabling the button

  • actions Array< Action >
    Required

    List of actions, performed in this order

  • runtimeExpressionEvaluation
    Required

    Boolean to determine the parallel evaluation of expression. Set to true if you want the expression to be evaluated between the actions (instead of upfront).

  • Required

    Navigation action to move to new sheet/URL, performed after all other actions

    Show navigation properties
    • action 'nextSheet'  |  'prevSheet'  |  'firstSheet'  |  'lastSheet'  |  'goToSheet'  |  'goToSheetById'  |  'goToSheetById'  |  'goToStory'  |  'openWebsite'  |  'odagLink'  |  'openChainedApp'
      Required

      Name of navigation action

    • appId string

      app ID. Required for 'openChainedApp'

    • sheet string

      sheet ID. Required for 'goToSheet' and 'goToSheetById'

    • chartId string

      chart ID. Required for 'goToSheet' and highlighting the chart

    • story string

      Story ID. Required for 'goToStory'

    • websiteUrl string

      URL for website. required for 'openWebsite'

    • sameWindow boolean

      Set to true to open in same window/tab. Required for 'openWebsite'

    • odagLink string

      ODAG link name. Required for 'odagLink'

  • style Style
    Required

    All styling options

    Show style properties
    • label string

      The text displayed on the button

    • showLabel boolean

      If the label should be shown or hidden

    • font Font

      Styling for the label

      Show font properties
      • fontFamily string

        Font Family of the label

      • useColorExpression boolean

        Set to true to use color expression

      • Color defined by index or hex code, needed if useColorExpression is false

        Show color properties
        • color string

          Color as hex string (only used if index: -1)

        • index number

          Index in palette

      • colorExpression ColorExpression

        Color defined by expression, needed if useColorExpression is true

        Show colorExpression properties
        • qStringExpression object
          Required
          Show qStringExpression properties
          • qExpr string
            Required

            expression that resolves to a supported color format

      • size number

        Relative[] size of label, must be greater than 0 and 1 fills the entire button

      • sizeFixed number

        Fixed size of the label in pixels. Must be bigger than 5. Only active when sizeBehavior is fixed.

      • align 'left'  |  'center'  |  'right'

        Horizontal alignment

      • style object

        Additional style options

        Show style properties
        • bold boolean

          Bold text

        • italic boolean

          Italic text

        • underline boolean

          Underlined text

      • sizeBehavior 'responsive'  |  'relative'  |  'fixed'

        Setting to determine how the fontsize of the label is calculated.

    • background Background

      Styling for background, including image

      Show background properties
      • useColorExpression boolean

        Set to true to use color expression

      • Color defined by index or hex code, needed if useColorExpression is false

      • colorExpression ColorExpression

        Color defined by expression, needed if useColorExpression is true

      • mode 'none'  |  'media'

        Toggles the background image, set to media to show the image

      • useImage boolean

        Set to true to show background image

      • url object

        Contains the URL for the background image

        Show url properties
        • qStaticContentUrlDef object
          Show qStaticContentUrlDef properties
          • qUrl string

            URL represented as a string

      • position 'topLeft'  |  'centerLeft'  |  'bottomLeft'  |  'topCenter'  |  'centerCenter'  |  'bottomCenter'  |  'topRight'  |  'centerRight'  |  'bottomRight'  |  'top-left'  |  'center-left'  |  'bottom-left'  |  'top-center'  |  'center-center'  |  'top-right'  |  'center-right'  |  'bottom-right'

        Image position

      • size 'auto'  |  'alwaysFit'  |  'fitWidth'  |  'fitHeight'  |  'fill'  |  'alwaysFill'  |  'stretchFit'

        Size of the image, relative to the button

    • border Border

      Styling for border

      Show border properties
      • useBorder boolean

        Set to true to use border expression

      • width number

        Relative width, 0 is no border and 1 make the border fill the entire button

      • radius number

        Relative border radius, 0 is no rounding and 1 will make the short side a half circle

      • useColorExpression boolean

        Set to true to use color expression

      • Color defined by index or hex code, needed if useColorExpression is false

      • colorExpression string

        Color defined by expression, needed if useColorExpression is true

    • icon Icon

      Styling for icon

      Show icon properties
      • useIcon boolean

        Set to true to show icon, default is false

      • iconType object

        holds the name of the icon

        Show iconType properties
        • value string

          name of icon

      • position 'left'  |  'right'

        Defines which side of the label the icon will be

Action object

Defines what action to perform and options for that action type.

Properties

  • actionLabel string

    Label for reference

  • actionType 'applyBookmark'  |  'back'  |  'forward'  |  'clearAll'  |  'clearAllButThis'  |  'clearField'  |  'selectAll'  |  'selectValues'  |  'selectMatchingValues'  |  'selectAlternative'  |  'selectExcluded'  |  'selectPossible'  |  'toggleSelect'  |  'lockAll'  |  'lockField'  |  'unlockAll'  |  'unlockField'  |  'setVariable'  |  'doReload'  |  'executeAutomation'  |  'refreshDynamicViews'

    The type of action

  • bookmark string

    ID of bookmark, required for type 'applyBookmark'

  • field string

    Name of field. Required for types 'clearAllButThis', 'clearField', 'selectAll', 'selectValues', 'selectMatchingValues', 'selectAlternative', 'selectExcluded', 'selectPossible', 'toggleSelect', 'lockField' and 'unlockField'

  • softLock string

    Set to true to ignore locked field(s). Required for types 'clearAll', 'clearAllButThis', 'clearField', 'selectAll', 'selectValues', 'selectMatchingValues', 'selectAlternative', 'selectExcluded', 'selectPossible' and 'toggleSelect'

  • value string

    To select certain values in a field or set a variable. Required for types 'selectValues', 'selectMatchingValues', 'toggleSelect' and 'setVariable'

  • variable string

    Name of variable. Required for type 'setVariable'

  • partial boolean

    Set to true if you want to do a partial reload.

  • automation string

    Item ID of the automation (the id field returned from /api/v1/items?resourceType=automations)

  • automationId string

    ID of the automation (the id field from /api/v1/automations OR the id field from /api/v1/automations)

  • automationPostData boolean

    Set to true to include the current selections in the automation. Defaults to false

  • automationTriggered boolean

    Set to true when the automation should use the triggered run mode. Defaults to false

  • automationTriggeredText string

    Helper text when using the triggered run mode. Defaults to false

  • automationExecutionToken string

    Token used when using the triggered run mode

  • automationShowNotification boolean

    Set to true when an automation should return a notification when finished running. Defaults to false

  • automationNotificationDuration string

    The amount of time in seconds that a notification should remain visible after running an automation

  • automationNotificationDurationHelp string

    Helper text when enabling notifications

  • automationOpenLinkSameWindow boolean

    Set to true if you want links from notifications to be opened in the same tab

NavigationAction object

Defines a navigation action to perform after the other actions. Note that when the sn-action-button is used outside Qlik Sense you can only use the 'openWebsite' action.

Properties

  • action 'nextSheet'  |  'prevSheet'  |  'firstSheet'  |  'lastSheet'  |  'goToSheet'  |  'goToSheetById'  |  'goToSheetById'  |  'goToStory'  |  'openWebsite'  |  'odagLink'  |  'openChainedApp'
    Required

    Name of navigation action

  • appId string

    app ID. Required for 'openChainedApp'

  • sheet string

    sheet ID. Required for 'goToSheet' and 'goToSheetById'

  • chartId string

    chart ID. Required for 'goToSheet' and highlighting the chart

  • story string

    Story ID. Required for 'goToStory'

  • websiteUrl string

    URL for website. required for 'openWebsite'

  • sameWindow boolean

    Set to true to open in same window/tab. Required for 'openWebsite'

  • odagLink string

    ODAG link name. Required for 'odagLink'

Style object

Holds styling options

Properties

  • label string

    The text displayed on the button

  • showLabel boolean

    If the label should be shown or hidden

  • font Font

    Styling for the label

    Show font properties
    • fontFamily string

      Font Family of the label

    • useColorExpression boolean

      Set to true to use color expression

    • Color defined by index or hex code, needed if useColorExpression is false

      Show color properties
      • color string

        Color as hex string (only used if index: -1)

      • index number

        Index in palette

    • colorExpression ColorExpression

      Color defined by expression, needed if useColorExpression is true

      Show colorExpression properties
      • qStringExpression object
        Required
        Show qStringExpression properties
        • qExpr string
          Required

          expression that resolves to a supported color format

    • size number

      Relative[] size of label, must be greater than 0 and 1 fills the entire button

    • sizeFixed number

      Fixed size of the label in pixels. Must be bigger than 5. Only active when sizeBehavior is fixed.

    • align 'left'  |  'center'  |  'right'

      Horizontal alignment

    • style object

      Additional style options

      Show style properties
      • bold boolean

        Bold text

      • italic boolean

        Italic text

      • underline boolean

        Underlined text

    • sizeBehavior 'responsive'  |  'relative'  |  'fixed'

      Setting to determine how the fontsize of the label is calculated.

  • background Background

    Styling for background, including image

    Show background properties
    • useColorExpression boolean

      Set to true to use color expression

    • Color defined by index or hex code, needed if useColorExpression is false

    • colorExpression ColorExpression

      Color defined by expression, needed if useColorExpression is true

    • mode 'none'  |  'media'

      Toggles the background image, set to media to show the image

    • useImage boolean

      Set to true to show background image

    • url object

      Contains the URL for the background image

      Show url properties
      • qStaticContentUrlDef object
        Show qStaticContentUrlDef properties
        • qUrl string

          URL represented as a string

    • position 'topLeft'  |  'centerLeft'  |  'bottomLeft'  |  'topCenter'  |  'centerCenter'  |  'bottomCenter'  |  'topRight'  |  'centerRight'  |  'bottomRight'  |  'top-left'  |  'center-left'  |  'bottom-left'  |  'top-center'  |  'center-center'  |  'top-right'  |  'center-right'  |  'bottom-right'

      Image position

    • size 'auto'  |  'alwaysFit'  |  'fitWidth'  |  'fitHeight'  |  'fill'  |  'alwaysFill'  |  'stretchFit'

      Size of the image, relative to the button

  • border Border

    Styling for border

    Show border properties
    • useBorder boolean

      Set to true to use border expression

    • width number

      Relative width, 0 is no border and 1 make the border fill the entire button

    • radius number

      Relative border radius, 0 is no rounding and 1 will make the short side a half circle

    • useColorExpression boolean

      Set to true to use color expression

    • Color defined by index or hex code, needed if useColorExpression is false

    • colorExpression string

      Color defined by expression, needed if useColorExpression is true

  • icon Icon

    Styling for icon

    Show icon properties
    • useIcon boolean

      Set to true to show icon, default is false

    • iconType object

      holds the name of the icon

      Show iconType properties
      • value string

        name of icon

    • position 'left'  |  'right'

      Defines which side of the label the icon will be

Font object

Properties

  • fontFamily string

    Font Family of the label

  • useColorExpression boolean

    Set to true to use color expression

  • Color defined by index or hex code, needed if useColorExpression is false

    Show color properties
    • color string

      Color as hex string (only used if index: -1)

    • index number

      Index in palette

  • colorExpression ColorExpression

    Color defined by expression, needed if useColorExpression is true

    Show colorExpression properties
    • qStringExpression object
      Required
      Show qStringExpression properties
      • qExpr string
        Required

        expression that resolves to a supported color format

  • size number

    Relative[] size of label, must be greater than 0 and 1 fills the entire button

  • sizeFixed number

    Fixed size of the label in pixels. Must be bigger than 5. Only active when sizeBehavior is fixed.

  • align 'left'  |  'center'  |  'right'

    Horizontal alignment

  • style object

    Additional style options

    Show style properties
    • bold boolean

      Bold text

    • italic boolean

      Italic text

    • underline boolean

      Underlined text

  • sizeBehavior 'responsive'  |  'relative'  |  'fixed'

    Setting to determine how the fontsize of the label is calculated.

Background object

Properties

  • useColorExpression boolean

    Set to true to use color expression

  • Color defined by index or hex code, needed if useColorExpression is false

    Show color properties
    • color string

      Color as hex string (only used if index: -1)

    • index number

      Index in palette

  • colorExpression ColorExpression

    Color defined by expression, needed if useColorExpression is true

    Show colorExpression properties
    • qStringExpression object
      Required
      Show qStringExpression properties
      • qExpr string
        Required

        expression that resolves to a supported color format

  • mode 'none'  |  'media'

    Toggles the background image, set to media to show the image

  • useImage boolean

    Set to true to show background image

  • url object

    Contains the URL for the background image

    Show url properties
    • qStaticContentUrlDef object
      Show qStaticContentUrlDef properties
      • qUrl string

        URL represented as a string

  • position 'topLeft'  |  'centerLeft'  |  'bottomLeft'  |  'topCenter'  |  'centerCenter'  |  'bottomCenter'  |  'topRight'  |  'centerRight'  |  'bottomRight'  |  'top-left'  |  'center-left'  |  'bottom-left'  |  'top-center'  |  'center-center'  |  'top-right'  |  'center-right'  |  'bottom-right'

    Image position

  • size 'auto'  |  'alwaysFit'  |  'fitWidth'  |  'fitHeight'  |  'fill'  |  'alwaysFill'  |  'stretchFit'

    Size of the image, relative to the button

Border object

Properties

  • useBorder boolean

    Set to true to use border expression

  • width number

    Relative width, 0 is no border and 1 make the border fill the entire button

  • radius number

    Relative border radius, 0 is no rounding and 1 will make the short side a half circle

  • useColorExpression boolean

    Set to true to use color expression

  • Color defined by index or hex code, needed if useColorExpression is false

    Show color properties
    • color string

      Color as hex string (only used if index: -1)

    • index number

      Index in palette

  • colorExpression string

    Color defined by expression, needed if useColorExpression is true

Icon object

Icons are only available inside Qlik Sense

Properties

  • useIcon boolean

    Set to true to show icon, default is false

  • iconType object

    holds the name of the icon

    Show iconType properties
    • value string

      name of icon

  • position 'left'  |  'right'

    Defines which side of the label the icon will be

PaletteColor object

Color information structure. Holds the actual color and index in palette.

Properties

  • color string

    Color as hex string (only used if index: -1)

  • index number

    Index in palette

ColorExpression object

Format for using color expressions

Properties

  • qStringExpression object
    Required
    Show qStringExpression properties
    • qExpr string
      Required

      expression that resolves to a supported color format

EnabledExpression object

Format for setting if the button is enabled/disabled with an expression

Properties

  • qStringExpression object
    Required
    Show qStringExpression properties
    • qExpr string
      Required

      expression that resolves to a number