Class: TextareaPreview

Inherits:
Lookbook::Preview
  • Object
show all
Defined in:
lib/lookbook/textarea_preview.rb

Instance Method Summary collapse

Instance Method Details

#default(label: 'Textarea', disabled: false, required: false) ⇒ Object

Parameters:

  • label (defaults to: 'Textarea')

    text

  • disabled (defaults to: false)

    toggle

  • required (defaults to: false)

    toggle



6
7
8
# File 'lib/lookbook/textarea_preview.rb', line 6

def default(label: 'Textarea', disabled: false, required: false)
  render 'common/form', helper_name: 'material_textarea', label: label, name: 'textarea', id: 'Text', disabled: disabled, required: required
end