forked from deephaven/deephaven-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
action_menu and list_action_menu Python components (deephaven#445)
- Loading branch information
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
__all__ = [ | ||
"action_button", | ||
"action_group", | ||
"action_menu", | ||
"button", | ||
"button_group", | ||
"checkbox", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from ..elements import BaseElement | ||
|
||
|
||
def action_menu(*children, **props): | ||
""" | ||
ActionMenu combines an ActionButton with a Menu for simple "more actions" use cases. | ||
Args: | ||
children: A list of Item or primitive elements. | ||
**props: Any other ActionMenu prop. | ||
""" | ||
return BaseElement(f"deephaven.ui.components.ActionMenu", *children, **props) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters