Sha256: f7fdd40734bf3e7c59baeb3361b38ced35d143a057aa0a8bab89d11d0048c416
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module Yattho module Forms # :nodoc: class ToggleSwitch < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input @input.add_label_classes("FormControl-label") @input.add_input_classes("FormControl-toggleSwitchInput") @input.input_arguments[:hidden] = "hidden" if @input.hidden? end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yattho_view_components-0.1.1 | lib/yattho/forms/toggle_switch.rb |
yattho_view_components-0.0.1 | lib/yattho/forms/toggle_switch.rb |