Class: Mxrb::RubyApp::Page
- Inherits:
-
Object
- Object
- Mxrb::RubyApp::Page
- Defined in:
- lib/mxrb/ruby_app.rb
Overview
Page metadata remains ordinary Ruby while the browser receives its JSON projection from the integrated backend.
Class Attribute Summary collapse
-
.appearance_class ⇒ Object
readonly
Returns the value of attribute appearance_class.
-
.appearance_style ⇒ Object
readonly
Returns the value of attribute appearance_style.
-
.data_source ⇒ Object
readonly
Returns the value of attribute data_source.
-
.mendix_id ⇒ Object
readonly
Returns the value of attribute mendix_id.
-
.title ⇒ Object
readonly
Returns the value of attribute title.
-
.widgets ⇒ Object
readonly
Returns the value of attribute widgets.
Class Method Summary collapse
- .configure(title:, widgets: [], appearance_class: '', appearance_style: '', data_source: nil) ⇒ Object
- .mendix_name(value = nil, id: nil) ⇒ Object
Class Attribute Details
.appearance_class ⇒ Object (readonly)
Returns the value of attribute appearance_class.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def appearance_class @appearance_class end |
.appearance_style ⇒ Object (readonly)
Returns the value of attribute appearance_style.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def appearance_style @appearance_style end |
.data_source ⇒ Object (readonly)
Returns the value of attribute data_source.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def data_source @data_source end |
.mendix_id ⇒ Object (readonly)
Returns the value of attribute mendix_id.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def mendix_id @mendix_id end |
.title ⇒ Object (readonly)
Returns the value of attribute title.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def title @title end |
.widgets ⇒ Object (readonly)
Returns the value of attribute widgets.
305 306 307 |
# File 'lib/mxrb/ruby_app.rb', line 305 def @widgets end |
Class Method Details
.configure(title:, widgets: [], appearance_class: '', appearance_style: '', data_source: nil) ⇒ Object
316 317 318 319 320 321 322 |
# File 'lib/mxrb/ruby_app.rb', line 316 def configure(title:, widgets: [], appearance_class: '', appearance_style: '', data_source: nil) @title = title.to_s @widgets = .freeze @appearance_class = appearance_class.to_s @appearance_style = appearance_style.to_s @data_source = data_source end |