Sha256: 0a0666fcf40f8bf779eea82c3ddf95d47aa9dcb88d8cfdf255e458d064d15b40
Contents?: true
Size: 571 Bytes
Versions: 27
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true module Primer module Forms # :nodoc: class SelectList < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input @input.add_input_classes( "FormControl-select", "FormControl--medium" ) @field_wrap_classes = class_names("FormControl-select-wrap") end def options @options ||= @input.options.map do |option| [option.label, option.value, option.system_arguments] end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems