Sha256: aa3d2b216edf83ea7abe5130947988f32fdfdaba205c3524376b4de84b25a07b
Contents?: true
Size: 642 Bytes
Versions: 32
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Playbook module Forms class Builder 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
Version data entries
32 entries across 32 versions & 1 rubygems