Sha256: 3f8cd7fed732529f0edd01bfb4947fe9b7d6674015924917b8fc39c1159dfb7e
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
class InputComponentPreview < ViewComponent::Preview class TempObj attr_accessor :fieldname def initialize(fieldname = 'Example value') @fieldname = fieldname end def self.human_attribute_name(_) 'label' end end layout false def default raise 'not implemented yet' # temp_obj = TempObj.new # ActionView::Helpers.form_for temp_obj do |form_builder| # # form_builder = ActionView::Helpers::FormBuilder.new(:temp_obj, temp_obj, {}, {}) # render(InputComponent.new(type: :text, # label: nil, # value: nil, # form: form_builder, # fieldname: :fieldname, # collection: nil, # options: {})) # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/previews/input_component_preview.rb |