Sha256: 0cf645c902d39c8b1c1f933ba9498571766a3a1131dc6d1c6e9ebe0cf83258e7

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'voom/presenters/dsl/components/toggle_base'

module Voom
  module Presenters
    module DSL
      module Components
        class Checkbox < ToggleBase
          attr_accessor :indeterminate

          def initialize(**attribs_, &block)
            super(type: :checkbox,  **attribs_, &block)
            @indeterminate = attribs.delete(:indeterminate) { false }
            expand!
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voom-presenters-0.2.0 lib/voom/presenters/dsl/components/checkbox.rb