Properties
- version stringRequired
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 booleanRequired
Controlling if the button should use an expression to determine if it is enabled or not
- enabledCondition number | EnabledExpressionRequired
Number or expression evaluating to number, 0 means disabling the button
- actions Array< Action >Required
List of actions, performed in this order
- runtimeExpressionEvaluationRequired
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
navigation properties
- 'nextSheet' | 'prevSheet' | 'firstSheet' | 'lastSheet' | 'goToSheet' | 'goToSheetById' | 'goToSheetById' | 'goToStory' | 'openWebsite' | 'odagLink' | 'openChainedApp'Required
Name of navigation action
- string
app ID. Required for 'openChainedApp'
- string
sheet ID. Required for 'goToSheet' and 'goToSheetById'
- string
chart ID. Required for 'goToSheet' and highlighting the chart
- string
Story ID. Required for 'goToStory'
- string
URL for website. required for 'openWebsite'
- boolean
Set to true to open in same window/tab. Required for 'openWebsite'
- string
ODAG link name. Required for 'odagLink'
-
- style StyleRequired
All styling options
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
font properties
- fontFamily string
Font Family of the label
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
Color defined by index or hex code, needed if useColorExpression is false
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
colorExpression properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
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
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
background properties
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
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
url properties
- qStaticContentUrlDef object
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
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 PaletteColor
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
icon properties
- useIcon boolean
Set to true to show icon, default is false
- iconType object
holds the name of the icon
iconType properties
- value string
name of icon
-
- position 'left' | 'right'
Defines which side of the label the icon will be
-
-
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
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
- 'nextSheet' | 'prevSheet' | 'firstSheet' | 'lastSheet' | 'goToSheet' | 'goToSheetById' | 'goToSheetById' | 'goToStory' | 'openWebsite' | 'odagLink' | 'openChainedApp'Required
Name of navigation action
- string
app ID. Required for 'openChainedApp'
- string
sheet ID. Required for 'goToSheet' and 'goToSheetById'
- string
chart ID. Required for 'goToSheet' and highlighting the chart
- string
Story ID. Required for 'goToStory'
- string
URL for website. required for 'openWebsite'
- boolean
Set to true to open in same window/tab. Required for 'openWebsite'
- string
ODAG link name. Required for 'odagLink'
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
font properties
- fontFamily string
Font Family of the label
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
Color defined by index or hex code, needed if useColorExpression is false
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
colorExpression properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
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
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
background properties
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
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
url properties
- qStaticContentUrlDef object
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
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 PaletteColor
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
icon properties
- useIcon boolean
Set to true to show icon, default is false
- iconType object
holds the name of the icon
iconType properties
- value string
name of icon
-
- position 'left' | 'right'
Defines which side of the label the icon will be
-
Properties
- fontFamily string
Font Family of the label
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
Color defined by index or hex code, needed if useColorExpression is false
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
colorExpression properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
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
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.
Properties
- useColorExpression boolean
Set to true to use color expression
- color PaletteColor
Color defined by index or hex code, needed if useColorExpression is false
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
colorExpression properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
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
url properties
- qStaticContentUrlDef object
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
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 PaletteColor
Color defined by index or hex code, needed if useColorExpression is false
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
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
iconType properties
- value string
name of icon
-
- position 'left' | 'right'
Defines which side of the label the icon will be
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
Format for using color expressions
Properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
expression that resolves to a supported color format
-
Format for setting if the button is enabled/disabled with an expression
Properties
- qStringExpression objectRequired
qStringExpression properties
- qExpr stringRequired
expression that resolves to a number
-