Convert extensions' Dropdown
tool to Flyout
And use the style of a regular context Theatre.js menu.
This commit is contained in:
parent
3d343cc59e
commit
a30bba0708
7 changed files with 209 additions and 167 deletions
|
@ -41,28 +41,32 @@ studio.extend({
|
|||
},
|
||||
},
|
||||
{
|
||||
type: 'Downdown',
|
||||
svgSource: '🫠',
|
||||
onChange: (value: any) => {
|
||||
console.log('Change:', value)
|
||||
},
|
||||
selectable: false,
|
||||
options: [
|
||||
type: 'Flyout',
|
||||
label: '🫠',
|
||||
items: [
|
||||
{
|
||||
label: 'Option 1',
|
||||
value: 0,
|
||||
label: 'Item 1',
|
||||
onClick: () => {
|
||||
console.log('Item 1 clicked')
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Option 2',
|
||||
value: 1,
|
||||
label: 'Item 2',
|
||||
onClick: () => {
|
||||
console.log('Item 2 clicked')
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Option 3',
|
||||
value: 2,
|
||||
label: 'Item 3',
|
||||
onClick: () => {
|
||||
console.log('Item 3 clicked')
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Option 4',
|
||||
value: 3,
|
||||
label: 'Item 4',
|
||||
onClick: () => {
|
||||
console.log('Item 4 clicked')
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue