Class: Playbook::PbTextarea::Textarea
- Defined in:
- app/pb_kits/playbook/pb_textarea/textarea.rb
Instance Method Summary collapse
Methods inherited from KitBase
Methods included from ZIndex
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
Methods included from Playbook::Props
Methods included from Playbook::PbKitHelper
Methods included from Playbook::PbFormsHelper
Instance Method Details
#character_counter ⇒ Object
25 26 27 |
# File 'app/pb_kits/playbook/pb_textarea/textarea.rb', line 25 def character_counter max_characters && character_count ? "#{character_count} / #{max_characters}" : character_count end |
#classname ⇒ Object
21 22 23 |
# File 'app/pb_kits/playbook/pb_textarea/textarea.rb', line 21 def classname generate_classname("pb_textarea_kit") + error_class + resize_class end |