Class: Oversee::Field::Input::Integer
- Inherits:
-
Oversee::Field::Input
- Object
- Phlex::HTML
- Base
- Oversee::Field
- Oversee::Field::Input
- Oversee::Field::Input::Integer
- Defined in:
- app/components/oversee/field/input/integer.rb
Constant Summary
Constants inherited from Oversee::Field::Input
Instance Attribute Summary
Attributes inherited from Oversee::Field
#datatype, #key, #resource, #value
Instance Method Summary collapse
Methods inherited from Oversee::Field
#__FORM__, #__INPUT__, #__LABEL__, #__SET__, #__VALUE__, #field_form_id, #field_id, #field_name, #initialize, #resource_class_name
Constructor Details
This class inherits a constructor from Oversee::Field
Instance Method Details
#view_template ⇒ Object
2 3 4 |
# File 'app/components/oversee/field/input/integer.rb', line 2 def view_template input(type: "number", id: field_id, name: field_name, value:, class: "flex w-full border rounded-sm px-4 py-2 text-sm") end |