NAME

Rui::Widget::NoteBook - the notebook widget


SYNOPSIS

  $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)
  });


SUPERCLASS

the Rui::Widget::Panel manpage


SEE ALSO

Rui::Widget::Tab


EVENTS

Selection_Change
the Rui::Event::Value manpage. The user has switched pages. The value is the selected index.


DESCRIPTION

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.