Class: Primer::Forms::CheckBoxGroup
- Inherits:
 - 
      BaseComponent
      
        
- Object
 - BaseComponent
 - Primer::Forms::CheckBoxGroup
 
 
- Defined in:
 - lib/primer/forms/check_box_group.rb
 
Overview
:nodoc:
Instance Attribute Summary
Attributes included from ActsAsComponent
Instance Method Summary collapse
- 
  
    
      #initialize(input:)  ⇒ CheckBoxGroup 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CheckBoxGroup.
 
Methods inherited from BaseComponent
#content, inherited, #input?, #perform_render, #render?, #to_component, #type
Methods included from ActsAsComponent
#compile!, extended, #renders_templates
Methods included from ClassNameHelper
Constructor Details
#initialize(input:) ⇒ CheckBoxGroup
Returns a new instance of CheckBoxGroup.
      9 10 11 12 13 14 15 16  | 
    
      # File 'lib/primer/forms/check_box_group.rb', line 9 def initialize(input:) @input = input @input.add_label_classes("FormControl-label", "mb-2") @input.add_input_classes("FormControl-check-group-wrap") Primer::Forms::Utils.classify(@input.input_arguments) end  |