Class: UI::InputGroupInput
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::InputGroupInput
- Includes:
- InputGroupInputBehavior
- Defined in:
- app/components/ui/input_group_input.rb
Overview
Input - Phlex implementation
An input element styled for use within input groups. Uses both InputBehavior and InputGroupInputBehavior for styling.
Instance Method Summary collapse
-
#initialize(type: "text", placeholder: nil, value: nil, name: nil, id: nil, classes: "", **attributes) ⇒ InputGroupInput
constructor
A new instance of InputGroupInput.
- #view_template ⇒ Object
Methods included from InputGroupInputBehavior
#input_group_input_attributes, #input_group_input_classes, #input_group_input_html_attributes
Constructor Details
#initialize(type: "text", placeholder: nil, value: nil, name: nil, id: nil, classes: "", **attributes) ⇒ InputGroupInput
Returns a new instance of InputGroupInput.
29 30 31 32 33 34 35 36 37 |
# File 'app/components/ui/input_group_input.rb', line 29 def initialize(type: "text", placeholder: nil, value: nil, name: nil, id: nil, classes: "", **attributes) @type = type @placeholder = placeholder @value = value @name = name @id = id @classes = classes @attributes = attributes end |