Class: Mxrb::Dsl::TabPageBuilder
- Inherits:
-
Object
- Object
- Mxrb::Dsl::TabPageBuilder
- Includes:
- WidgetDsl
- Defined in:
- lib/mxrb/dsl/builder.rb
Instance Method Summary collapse
-
#initialize(name, caption: nil) ⇒ TabPageBuilder
constructor
A new instance of TabPageBuilder.
- #to_h ⇒ Object
Methods included from WidgetDsl
#bson_binary, #button, #check_box, #container, #data_grid, #date_picker, #drop_down, #native_widget, #number_input, #pluggable_widget, #reference_selector, #snippet, #tab_control, #text, #text_area, #text_box
Constructor Details
#initialize(name, caption: nil) ⇒ TabPageBuilder
Returns a new instance of TabPageBuilder.
171 172 173 174 175 |
# File 'lib/mxrb/dsl/builder.rb', line 171 def initialize(name, caption: nil) @name = name.to_s @caption = caption || name.to_s @widgets = [] end |
Instance Method Details
#to_h ⇒ Object
177 |
# File 'lib/mxrb/dsl/builder.rb', line 177 def to_h = { name: @name, caption: @caption, widgets: @widgets } |