Feat/studio extension dropdowns (#379)

This commit is contained in:
Colin Duffy 2023-01-23 13:16:38 -08:00 committed by GitHub
parent 8470b67d4b
commit 3d343cc59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 137 additions and 8 deletions

View file

@ -40,6 +40,32 @@ studio.extend({
studio.createPane('example')
},
},
{
type: 'Downdown',
svgSource: '🫠',
onChange: (value: any) => {
console.log('Change:', value)
},
selectable: false,
options: [
{
label: 'Option 1',
value: 0,
},
{
label: 'Option 2',
value: 1,
},
{
label: 'Option 3',
value: 2,
},
{
label: 'Option 4',
value: 3,
},
],
},
])
updateToolset()