Sha256: 22dedb49bd0d57401da724e6dbba7ad8a28056d8ef240f12d77456508739c79e
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
class TableHeaderComponentPreview < ViewComponent::Preview class TempObj def self.human_attribute_name(_) 'label' end def fieldname 'value' end end layout false def default temp_obj = TempObj.new render(TableHeaderComponent.new(label: nil, url: nil, obj: temp_obj, fieldname: :fieldname)) end def with_url temp_obj = TempObj.new render(TableHeaderComponent.new(label: nil, url: 'example/url', obj: temp_obj, fieldname: :fieldname)) end def with_custom_label render(TableHeaderComponent.new(label: 'Custom label', url: nil, obj: nil, fieldname: nil)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/previews/table_header_component_preview.rb |