Skip to content

Instantly share code, notes, and snippets.

@erikwett
Last active July 17, 2018 08:02
Show Gist options
  • Save erikwett/147197780c5827b4c65e44ba832e5277 to your computer and use it in GitHub Desktop.
Save erikwett/147197780c5827b4c65e44ba832e5277 to your computer and use it in GitHub Desktop.
Qlik Sense extension: property panel dropdown with custom alternative
width: {
type: 'string',
component: 'dropdown',
label: 'Width',
ref: 'width',
options: [{value: '', label: 'Default'},
{value: 'fill', label: 'Fill'},
{value: 'custom', label: 'Custom'}]
},
customwidth: {
type: 'string',
ref: 'customwidth',
label: 'Custom width',
expression: 'optional',
show: function (data) {
return data.width === 'custom';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment