Class Checkbox

public
Extends: Component
Defined in: packages/@ember/-internals/glimmer/lib/components/checkbox.ts:11
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

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/classes/Checkbox