optional required

Checkbox & Radio Button Directives
Create & Control Semantic UI Checkboxes & Radio Buttons with Angular Directives

sm-checkbox
Create a plain checkbox.

Attributes
Callback Attributes

sm-checkbox-bind
A lightweight attribute directive which calls checkbox() on the element with the settings object passed to the attribute. Using this directive means you need to manage the communication between Angular and Semantic UI yourself.



        

sm-radio
Create a plain radio button. Radio buttons and checkboxes use the same checkbox module but are separate directives for convenience.

Attributes
Callback Attributes

sm-radio-bind
A lightweight attribute directive which calls checkbox() on the element with the settings object passed to the attribute. Using this directive means you need to manage the communication between Angular and Semantic UI yourself.



        

Behavior Directives

These attribute directives invoke a behavior on the component where the attribute value can be one of the following formats:

String
Object
Example


        
Execute Simple Behavior Execute Advanced Behavior

sm-checkbox-toggle
When a DOM event fires on the element with the directive, it can command checkbox(es) to toggle their state.



        
{{ value3 }}
Toggle

sm-checkbox-check / sm-radio-check
When a DOM event fires on the element with the directive, it can command checkbox/radio(s) to the checked state.



        
{{ value4a }} / {{ value4b }}
Check




sm-checkbox-uncheck
When a DOM event fires on the element with the directive, it can command checkbox(es) to the unchecked state.



        
{{ value5 }}
Uncheck

sm-checkbox-indeterminate
When a DOM event fires on the element with the directive, it can command checkbox(es) to the indeterminate state.



        
{{ value6 }}
Indeterminate

sm-checkbox-determinate
When a DOM event fires on the element with the directive, it can command checkbox(es) to a determinate state.



        
{{ value7 }}
Determinate

sm-checkbox-enable / sm-radio-enable
When a DOM event fires on the element with the directive, it can command checkbox/radio(s) to become enabled.



        
Enable




sm-checkbox-disable / sm-radio-disable
When a DOM event fires on the element with the directive, it can command checkbox/radio(s) to become disabled.



        
Disable