Sha256: 08ee40535f005f0cdb59037be1f67f9d985b6acdb7181687e921f16284e4adf5
Contents?: true
Size: 512 Bytes
Versions: 7
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true # Add a number-field, either specifying everything manually or using a model object on the form # # == Basic usage: # {%number_field name:"name" value:"1"%} # # == Advanced usage: # {%number_field name%} # # This last usage requires a model on the form # require_relative './text_field_tag' class NumberFieldTag < TextFieldTag def initialize(tag, args, tokens) super @field_type = 'number' end end Liquid::Template.register_tag('number_field', NumberFieldTag)
Version data entries
7 entries across 7 versions & 1 rubygems