Module: Teek::UI::TabRealize Private

Defined in:
lib/teek/ui/widget_types/tab.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Adds a freshly created :tab's own frame to the enclosing notebook as a page, labeled with whatever #tab stashed as tab_label:. ttk::notebook add is the page's whole placement - unlike every other container, a tab's frame is never pack/grid-managed on its own (see :tab's own arranged: false below). Registered as :tab's own post_create:.

Class Method Summary collapse

Class Method Details

.post_create(app, node, path, parent_path) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/teek/ui/widget_types/tab.rb', line 17

def self.post_create(app, node, path, parent_path)
  app.command(parent_path, :add, path, text: node.opts[:tab_label])
end