Class: Glib::JsonUi::ViewBuilder::Fields::Date
- Inherits:
-
AbstractField
- Object
- JsonUiElement
- View
- AbstractField
- Glib::JsonUi::ViewBuilder::Fields::Date
- Defined in:
- app/helpers/glib/json_ui/view_builder/fields.rb
Overview
string :directUploadUrl
# string :fileUrl
# string :fileTitle
hash :placeholderView
end
Instance Attribute Summary
Attributes inherited from JsonUiElement
Instance Method Summary collapse
-
#value(value) ⇒ Object
Override.
Methods inherited from AbstractField
#autoValidate, #context, #created, #default_url_options, #determine_value, #hint, #hint_args, #label, #label_args, #name, #placeholder, #placeholder_args, #prop, #validation
Methods inherited from View
Methods inherited from JsonUiElement
Constructor Details
This class inherits a constructor from Glib::JsonUi::JsonUiElement
Instance Method Details
#value(value) ⇒ Object
Override
440 441 442 443 |
# File 'app/helpers/glib/json_ui/view_builder/fields.rb', line 440 def value(value) value = "#{value}-01" if value.is_a?(String) && value&.length == 7 # yyyy-mm super(value&.to_date) end |