Class: PageBuilder::Elements::Inputs::Checkbox

Inherits:
PageBuilder::Elements::Input show all
Defined in:
lib/pagebuilder/elements/inputs/checkbox.rb

Overview

Creates checkbox input nodes and adds some helper methods for commonly used attributes

Instance Method Summary collapse

Methods inherited from PageBuilder::Elements::Input

new, #type, #type=, #value, #value=

Methods inherited from Basic

#configure, #data_attributes=

Constructor Details

#initialize(*args) ⇒ Checkbox

Returns a new instance of Checkbox.



11
12
13
14
# File 'lib/pagebuilder/elements/inputs/checkbox.rb', line 11

def initialize(*args)
  super
  self.type = 'checkbox'
end