A hoversel is a button that pops up a list of items (automatically choosing the direction to display) that have a label and, optionally, an icon to select from.
It is a convenience widget to avoid the need to do all the piecing together yourself. It is intended for a small number of items in the hoversel menu (no more than 8), though is capable of many more.
This widget emits the following signals, besides the ones sent from Button:
the sel
is the item
"dismissed" - the hover is dismissed
Default content parts of the hoversel widget that you can use for are:
Default text parts of the hoversel widget that you can use for are:
No icon
Icon is a file
Icon is set with standards names
Bases: efl.elementary.button.Button
This is the class that actually implements the widget.
The user clicked the hoversel button and popped up the sel.
The hover is dismissed.
An item in the hoversel list is selected. event_info is the item.
This will remove all the children items from the hoversel.
Warning
Should not be called while the hoversel is active; use expanded to check first.
See also
Returns whether the hoversel is expanded.
| Type : | bool |
|---|
Whether the hoversel is set to expand horizontally.
Note
The initial button will display horizontally regardless of this setting.
| Type : | bool |
|---|
This triggers the hoversel popup from code, the same as if the user had clicked the button.
This dismisses the hoversel popup as if the user had clicked outside the hover.
The Hover parent.
The hover parent object, the area that will be darkened when the hoversel is clicked. Should probably be the window that the hoversel is in. See Hover objects for more information.
| Type : | Object |
|---|
Get the list of items within the given hoversel.
See also
| Type : | tuple of HoverselItem‘s |
|---|
Bases: efl.elementary.object_item.ObjectItem
An item for the Hoversel widget.
For more information on what icon_file and icon_type are, see Icon.
| Parameters: |
|
|---|
Add an item to the hoversel button
This adds an item to the hoversel to show when it is clicked.
Note
If you need to use an icon from an edje file then use HoverselItem.icon right after this function.
| Returns: | The item added. |
|---|---|
| Return type: | HoverselItem |