Class Checkbox
publicExtends: | Component |
---|---|
Defined in: | packages/ember-glimmer/lib/components/checkbox.ts:9 |
Module: | @ember/component |
import Checkbox from '@ember/component/checkbox';
The internal class used to create text inputs when the {{input}}
helper is used with type
of checkbox
.
See Ember.Templates.helpers.input for usage details.
Direct manipulation of checked
The checked
attribute of an Checkbox
object should always be set through the Ember object or by interacting with its rendered element representation via the mouse, keyboard, or touch. Updating the value of the checkbox via jQuery will result in the checked value of the object and its element losing synchronization.
Layout and LayoutName properties
Because HTML input
elements are self closing layout
and layoutName
properties will not be applied.
Methods
- $
- addObserver
- cacheFor
- decrementProperty
- destroy
- didReceiveAttrs
- didRender
- didUpdate
- didUpdateAttrs
- get
- getProperties
- getWithDefault
- has
- incrementProperty
- init
- notifyPropertyChange
- off
- on
- one
- readDOMAttr
- removeObserver
- rerender
- send
- sendAction
- set
- setProperties
- toString
- toggleProperty
- trigger
- willDestroy
- willRender
- willUpdate
Properties
- actions
- ariaRole
- attributeBindings
- classNameBindings
- classNames
- concatenatedProperties
- element
- elementId
- isDestroyed
- isDestroying
- isVisible
- layout
- mergedProperties
- positionalParams
- tagName
Events
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/classes/Checkbox