Class: Uchi::Flowbite::Input::File
- Inherits:
-
Uchi::Field
- Object
- Uchi::Field
- Uchi::Flowbite::Input::File
- Defined in:
- app/components/uchi/flowbite/input/file.rb
Constant Summary collapse
- SIZES =
{ sm: ["text-sm"], default: ["text-sm"], lg: ["text-base"] }.freeze
Constants included from Uchi::Field::Configuration
Uchi::Field::Configuration::DEFAULT_READER
Instance Attribute Summary
Attributes inherited from Uchi::Field
Class Method Summary collapse
-
.styles ⇒ Object
rubocop:disable Layout/LineLength.
Instance Method Summary collapse
-
#input_field_type ⇒ Object
Returns the name of the method used to generate HTML for the input field.
Methods inherited from Uchi::Field
#column_name, #edit_component, #edit_component_class, #group_as, #index_component, #index_component_class, #initialize, #new_component, #param_key, #permitted_param, #show_component, #show_component_class, #value
Methods included from Uchi::Field::Configuration
#initialize, #on, #reader, #searchable, #searchable?, #sortable, #sortable?
Constructor Details
This class inherits a constructor from Uchi::Field
Class Method Details
.styles ⇒ Object
rubocop:disable Layout/LineLength
18 19 20 21 22 23 24 25 26 |
# File 'app/components/uchi/flowbite/input/file.rb', line 18 def self.styles { default: Uchi::Flowbite::Style.new( default: ["block", "w-full", "text-heading", "border", "border-default-medium", "rounded-base", "cursor-pointer", "bg-neutral-secondary-medium", "focus:outline-none"], disabled: ["block", "w-full", "text-fg-disabled", "border", "border-default-medium", "rounded-base", "cursor-not-allowed", "bg-neutral-secondary-medium"], error: ["block", "w-full", "text-fg-danger-strong", "border", "border-danger-subtle", "rounded-base", "cursor-pointer", "bg-danger-soft", "focus:outline-none"] ) }.freeze end |
Instance Method Details
#input_field_type ⇒ Object
Returns the name of the method used to generate HTML for the input field
13 14 15 |
# File 'app/components/uchi/flowbite/input/file.rb', line 13 def input_field_type :file_field end |