MenuItems

class orion_notebook.graph.menu_items.MenuItem(id: str, children: List[orion_notebook.graph.menu_items.MenuItem] = [], command: Optional[orion_notebook.graph.menu_items.MenuItemCommand] = None, has_separator: bool = False, title: Optional[str] = None, icon: Optional[str] = None, icon_url: Optional[str] = None, children_count: Optional[int] = 0, order: int = 999)

Bases: object

Represents a MenuItem that one node can contain in its contextual menu. It can either have children (list of MenuItem) or a command (MenuItemCommand)

children: List[orion_notebook.graph.menu_items.MenuItem]
children_count: int
command: orion_notebook.graph.menu_items.MenuItemCommand
has_separator: bool
icon: str
icon_url: str
id: str
order: int
reset_children_count(reset_value=None)

Resets the child count of the menu item. Needed when multiple nodes are selected.

title: str
class orion_notebook.graph.menu_items.MenuItemCommand(command_name: str, params: dict, user_input_parameters: List[orion_notebook.graph.menu_items.UserInputParameter] = [])

Bases: object

Represents a command that one MenuItem can contain and will execute when triggered

command: str
params: dict
user_input_parameters: List[orion_notebook.graph.menu_items.UserInputParameter]
class orion_notebook.graph.menu_items.UserInputParameter(parameter_type: str, label: str, value: object)

Bases: object

Represents a user defined parameter that can be used as an input flag

label: str
parameter_type: str
value: object