Sha256: cbdc152436012ff7042172279a34c7b2adc3d5ccd36e0457b91fa465b959a272
Contents?: true
Size: 703 Bytes
Versions: 227
Compression:
Stored size: 703 Bytes
Contents
# frozen_string_literal: true module Playbook module PbForm module FormBuilder module SelectField def select(name, choices = nil, options = {}, html_options = {}, props: {}, &block) props[:label] = @template.label(@object_name, name) if props[:label] == true options[:skip_default_ids] = false unless options.has_key?(:skip_default_ids) options[:prompt] = props[:blank_selection] || "" html_options[:required] = "required" if props[:required] input = super(name, choices, options, html_options, &block) @template.pb_rails("select", props: props) do input end end end end end end
Version data entries
227 entries across 227 versions & 1 rubygems