Sha256: eb799cceae5bdea4fb83fa7870d405e3f60b95e1d8b8a815fda430215b7a3003
Contents?: true
Size: 1.1 KB
Versions: 14
Compression:
Stored size: 1.1 KB
Contents
require_relative '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, context: context, **attribs, &block) end def switch(**attribs, &block) self << Switch.new(parent: self, context: context, **attribs, &block) end def icon_toggle(icon, **attribs, &block) trace { attribs.inspect } self << IconToggle.new(parent: self, icon: icon, context: context, **attribs, &block) end end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems