Can I Implement a Drop-Down Selector?
Currently there isn't a way to offer a multi-select dropdown, but you can use the Node Config Options tabular to get something similar.
To get this, use the following code.
- dropdownSelector
- Using a copy of the Stage Node
- displayName: MultiSelect Options
attributeName: options_multiselect
type: tabular
columns:
- type: dropdownSelector
displayName: Option1
attributeName: Option1
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
- type: dropdownSelector
displayName: Option2
attributeName: Option2
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
- type: dropdownSelector
displayName: Option3
attributeName: Option3
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
isRequired: false
capitalized: Copy of Stage
short: STG
plural: Stages
tagColor: '#2EB67D'
config:
- groupName: Options
items:
- type: materializationSelector
default: table
options:
- table
- view
isRequired: true
- type: multisourceToggle
enableIf: "{% if node.materializationType == 'table' %} true {% else %} false {% endif %}"
- type: overrideSQLToggle
enableIf: "{% if node.materializationType == 'view' %} true {% else %} false {% endif %}"
- displayName: Multi Source Strategy
attributeName: insertStrategy
type: dropdownSelector
default: INSERT
options:
- "INSERT"
- "UNION"
- "UNION ALL"
isRequired: true
enableIf: "{% if node.isMultisource %} true {% else %} false {% endif %}"
- displayName: Truncate Before
attributeName: truncateBefore
type: toggleButton
default: true
- displayName: Enable Tests
attributeName: testsEnabled
type: toggleButton
default: true
- displayName: Pre-SQL
attributeName: preSQL
type: textBox
syntax: sql
isRequired: false
- displayName: Post-SQL
attributeName: postSQL
type: textBox
syntax: sql
isRequired: false
- displayName: MultiSelect Options
attributeName: options_multiselect
type: tabular
columns:
- type: dropdownSelector
displayName: Option1
attributeName: Option1
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
- type: dropdownSelector
displayName: Option2
attributeName: Option2
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
- type: dropdownSelector
displayName: Option3
attributeName: Option3
options:
- Create or Replace
- Create If Not Exists
- Create At Existing Stream
isRequired: false
isRequired: false