module Voom::Presenters::DSL::Components::Mixins::Toggles
Public Instance Methods
checkbox(**attribs, &block)
click to toggle source
# File lib/voom/presenters/dsl/components/mixins/toggles.rb, line 9 def checkbox(**attribs, &block) self << Checkbox.new(parent: self, **attribs, &block) end
icon_toggle(icon, **attribs, &block)
click to toggle source
# File lib/voom/presenters/dsl/components/mixins/toggles.rb, line 23 def icon_toggle(icon, **attribs, &block) trace { attribs.inspect } self << IconToggle.new(parent: self, icon: icon, **attribs, &block) end
switch(**attribs, &block)
click to toggle source
# File lib/voom/presenters/dsl/components/mixins/toggles.rb, line 18 def switch(**attribs, &block) self << Switch.new(parent: self, **attribs, &block) end