mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
MenuBar/ContextMenu: hide the entries
interface
This can only be used internally by the style to implement the actual ContextMenu Only the declarative `MenuItem` interface is exposed. * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
ed179cd5b1
commit
98e8386aee
8 changed files with 156 additions and 55 deletions
|
@ -7,6 +7,19 @@ export component A {
|
|||
// ^error{'show' is not a callback in ContextMenu}
|
||||
debug("hello");
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
}
|
||||
|
||||
property <int> entries: 45;
|
||||
// ^error{Cannot re-define internal property 'entries'}
|
||||
property <int> sub-menu: 45;
|
||||
// ^error{Cannot re-define internal property 'sub-menu'}
|
||||
property <string> activated: "me";
|
||||
// ^error{Cannot re-define internal property 'activated'}
|
||||
|
||||
property <string> xyz: "me";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue