Banner
A bar with contextual information.
Banners are hidden by default, use property@Banner:revealed to show them.
Banners have a title, set with property@Banner:title. Titles can be marked up with Pango markup, use property@Banner:use-markup to enable it.
The title will be shown centered or left-aligned depending on available space.
Banners can optionally have a button with text on it, set through property@Banner:button-label. The button can be used with a GAction
, or with the signal@Banner::button-clicked signal.
CSS nodes
AdwBanner
has a main CSS node with the name banner
.
Since
1.3
Constructors
Properties
Functions
This signal is emitted after the action button has been clicked.
Gets the button label for @self.
Gets if a banner is revealed
Gets whether to use Pango markup for the banner title.
Sets the button label for @self.
Sets whether a banner should be revealed
Sets whether to use Pango markup for the banner title.