Class: Mxrb::Dsl::TabPageBuilder

Inherits:
Object
  • Object
show all
Includes:
WidgetDsl
Defined in:
lib/mxrb/dsl/builder.rb

Instance Method Summary collapse

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_hObject



177
# File 'lib/mxrb/dsl/builder.rb', line 177

def to_h = { name: @name, caption: @caption, widgets: @widgets }