Sha256: f2135798f72466b51e2176d41677e26402518cadfe6cc9d922b43756e55fd5b9
Contents?: true
Size: 991 Bytes
Versions: 1
Compression:
Stored size: 991 Bytes
Contents
require 'voom/presenters/dsl/components/mixins/append' module Voom module Presenters module DSL module Components module Mixins module Toggles include Mixins::Append def checkbox(**attribs, &block) self << Checkbox.new(parent: self, **attribs, &block) end def radio_button(**attribs, &block) self << RadioButton.new(parent: self, **attribs, &block) end def switch(**attribs, &block) self << Switch.new(parent: self, **attribs, &block) end def icon_toggle(icon, **attribs, &block) trace { attribs.inspect } self << IconToggle.new(parent: self, icon: icon, **attribs, &block) end 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/mixins/toggles.rb |