os-js / osjs-gui

OS.js GUI Module
https://manual.os-js.org/v3/
Other
18 stars 10 forks source link

Using components in context menu #3

Closed RossComputerGuy closed 5 years ago

andersevenrud commented 5 years ago

os js gui menu embed

Coming in the next update :)

Example:

[{
  element: () => h('div', {}, 'Custom component'),
}, {
  label: 'Sub menu',
  items: [{
    element: () => h('div', {}, 'Custom component'),
  }]
}]
andersevenrud commented 5 years ago

I've published a new @osjs/gui release now.

This has been added and can be used as the example above. Let me know how it works out.