class DefinitionComponentPreview
Public Instance Methods
default()
click to toggle source
# File lib/alveole/previews/definition_component_preview.rb, line 14 def default temp_obj = TempObj.new render(DefinitionComponent.new(label: nil, value: nil, obj: temp_obj, fieldname: :fieldname, options: {})) end
with_label()
click to toggle source
# File lib/alveole/previews/definition_component_preview.rb, line 19 def with_label temp_obj = TempObj.new render(DefinitionComponent.new(label: 'custom label', value: nil, obj: temp_obj, fieldname: :fieldname, options: {})) end
with_options()
click to toggle source
# File lib/alveole/previews/definition_component_preview.rb, line 29 def with_options temp_obj = TempObj.new render(DefinitionComponent.new(label: nil, value: nil, obj: temp_obj, fieldname: :fieldname, options: { style: 'color:red' })) end
with_value()
click to toggle source
# File lib/alveole/previews/definition_component_preview.rb, line 24 def with_value temp_obj = TempObj.new render(DefinitionComponent.new(label: nil, value: 'custom value', obj: temp_obj, fieldname: :fieldname, options: {})) end