Method: CWM::UIState#switch_to_tab

Defined in:
library/cwm/src/lib/cwm/ui_state.rb

#switch_to_tab(page) ⇒ Object

Method to be called when the user switches to a tab within a tree node.

It remembers the decision so the same tab is showed in case the user stays in the same node after redrawing.

Parameters:



113
114
115
# File 'library/cwm/src/lib/cwm/ui_state.rb', line 113

def switch_to_tab(page)
  self.tab = page.label
end