Sha256: 531e785fe9d8dbd27f83b3790667bf886939e13c1062961bd45a5b772c9e4252
Contents?: true
Size: 550 Bytes
Versions: 44
Compression:
Stored size: 550 Bytes
Contents
module UiBibzInputs class UiFormulaFieldInput < StringInput include UiBibz::Ui::Core::Forms::Numbers def input(wrapper_options) UiBibz::Ui::Core::Forms::Numbers::FormulaField.new(input_attribute_name, options, input_html_options).render end def input_html_options super.merge({ value: @builder.object.send(attribute_name), formula_field_value: @builder.object.send(options[:formula_field_name] || attribute_formula_name)}) end def attribute_formula_name "#{ attribute_name }_formula" end end end
Version data entries
44 entries across 44 versions & 1 rubygems