Class Ember.Checkbox

public
Extends: Ember.Component
Module: ember
Since: v2.15.3

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 Ember.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. See Ember.View's layout section for more information.

Show:

Module: ember

Available since v2.15.3

Called when the element of the view has been inserted into the DOM. Override this function to do any set up that requires an element in the document body.

When a view has children, didInsertElement will be called on the child view(s) first and on itself afterwards.

Module: ember

Available since v2.15.3

Called when the attributes passed into the component have been updated. Called both during the initial render of a container and during a rerender. Can be used in place of an observer; code placed here will be executed every time any attribute updates.

Module: ember

Available since v2.15.3

Called after a component has been rendered, both on initial render and in subsequent rerenders.

Module: ember

Available since v2.15.3

Called when the component has updated and rerendered itself. Called only during a rerender, not during an initial render.

Module: ember

Available since v2.15.3

Called when the attributes passed into the component have been changed. Called only during a rerender, not during an initial render.

Module: ember

Available since v2.15.3

Called when the view is about to rerender, but before anything has been torn down. This is a good opportunity to tear down any manual observers you have installed based on the DOM state

Module: ember

Available since v2.15.3

Called when the element of the view is going to be destroyed. Override this function to do any teardown that requires an element, like removing event listeners.

Please note: any property changes made during this event will have no effect on object observers.

Module: ember

Available since v2.15.3

Called when a view is going to insert an element into the DOM.

Module: ember

Available since v2.15.3

Called before a component has been rendered, both on initial render and in subsequent rerenders.

Module: ember

Available since v2.15.3

Called when the component is about to update and rerender itself. Called only during a rerender, not during an initial render.