Class: UI::Wizards::Layout::Mode
- Inherits:
-
Object
- Object
- UI::Wizards::Layout::Mode
- Defined in:
- library/general/src/lib/ui/wizards/layout.rb
Overview
Class to represent a layout mode
Class Method Summary collapse
-
.steps ⇒ Mode
Mode for a layout with a left sidebar.
-
.title_on_left ⇒ Mode
Mode for a layout without a sidebar/tree and with the title of the dialogs on the left.
-
.title_on_top ⇒ Mode
Mode for a layout without a sidebar/tree and with the title of the dialogs on top.
-
.tree ⇒ Mode
Mode for a layout with a left tree.
Instance Method Summary collapse
-
#steps? ⇒ Boolean
Whether the layout mode is for steps.
-
#title_on_left? ⇒ Boolean
Whether the layout mode is for title on left.
-
#title_on_top? ⇒ Boolean
Whether the layout mode is for title on top.
-
#tree? ⇒ Boolean
Whether the layout mode is for a tree.
Class Method Details
.steps ⇒ Mode
Mode for a layout with a left sidebar
55 56 57 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 55 def steps @steps ||= new(:steps) end |
.title_on_left ⇒ Mode
Mode for a layout without a sidebar/tree and with the title of the dialogs on the left
69 70 71 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 69 def title_on_left @title_on_left ||= new(:title_on_left) end |
.title_on_top ⇒ Mode
Mode for a layout without a sidebar/tree and with the title of the dialogs on top
76 77 78 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 76 def title_on_top @title_on_top ||= new(:title_on_top) end |
.tree ⇒ Mode
Mode for a layout with a left tree
62 63 64 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 62 def tree @tree ||= new(:tree) end |
Instance Method Details
#steps? ⇒ Boolean
Whether the layout mode is for steps
84 85 86 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 84 def steps? self == self.class.steps end |
#title_on_left? ⇒ Boolean
Whether the layout mode is for title on left
98 99 100 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 98 def title_on_left? self == self.class.title_on_left end |
#title_on_top? ⇒ Boolean
Whether the layout mode is for title on top
105 106 107 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 105 def title_on_top? self == self.class.title_on_top end |
#tree? ⇒ Boolean
Whether the layout mode is for a tree
91 92 93 |
# File 'library/general/src/lib/ui/wizards/layout.rb', line 91 def tree? self == self.class.tree end |