Rui::Widget::NoteBook - the notebook widget
$noteBook = $parent->NoteBook; $tab = $noteBook->Tab(value => "a tab"); $page = $noteBook->Page; $page->Label(value => foo'); # page is a panel $header = $noteBook->getHeader; # for styling $stack = $noteBook->getStack; # for styling $noteBook->addListener(Selection_Change => sub { $label->value(shift->value) });
the Rui::Widget::Panel manpage
Rui::Widget::Tab
A notebook is a container that shows only one page at a time. Users
switch between pages using the tabs. You can only create pages or
tabs in a notebook. The Nth tab will be associated with the Nth page,
where N is the order of creation. A Tab
is just a label, so you can
set styles and images on it.
You can get the header and the stack of the notebook, if you need to give them specific styles. They are both objects of the class the Rui::Widget::Panel manpage.