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.



214
215
216
217
218
# File 'lib/mxrb/dsl/builder.rb', line 214

def initialize(name, caption: nil)
  @name = name.to_s
  @caption = caption || name.to_s
  @widgets = []
end

Instance Method Details

#to_hObject



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

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