ButtonsPanel
is a container that streamlines the use and placement of the components (usually, buttons) for data management in a table.
XML-name of the component: buttonsPanel
.
A sample definition of ButtonsPanel
in screen XML-descriptor:
link:../../../../../../source/gui_vcl/buttonspanel_1.xml[role=include]
buttonsPanel
element can be located either inside a table
, or in any other place of a screen.
If the buttonsPanel
is located in a table
, it is combined with the table’s rowsCount component thus using vertical space more effectively. Additionally, if a lookup screen is opened using Frame.openLookup()
(for example, from the PickerField component) the buttons panel becomes hidden.
Tip
|
The caption of |
By default, buttons in the buttonsPanel
are placed horizontally with line wrapping. If there is not enough space in a line, the buttons that do not fit will be displayed in the next line.
You can change the default behavior to display buttonsPanel
in one row:
-
Create a theme extension or a custom theme.
-
Define the SCSS variable
$cuba-buttonspanel-flow
:$cuba-buttonspanel-flow: false
link:../../../../../../source/gui_vcl/buttonspanel.java[role=include]
- Attributes of buttonsPanel
-
align - alwaysVisible - caption - captionAsHtml - contextHelpText - contextHelpTextHtmlEnabled - css - description - descriptionAsHtml - enable - box.expandRatio - height - htmlSanitizerEnabled - id - stylename - visible - width
- API