Sha256: efb983834efc0a56d36af00a8e962b9cf211af891c1fa324ebf39d75ce40bfa1

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/checkbox.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/checkbox.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/checkbox.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/checkbox.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/checkbox.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/checkbox.rb