Mixin: SC.CalculatesEmptiness

A view is empty if all of its children are empty. A view is automatically counted as empty if it is not visible, and not empty if it is being edited.

Any field that does not mix in CalculatesEmptiness will be considered empty.

Defined in: emptiness.js

Field Summary

Class Methods

Field Detail

SC.CalculatesEmptiness.isEditingAffectsIsEmpty Boolean
If YES, all visible fields are considered non-empty when editing.
Default value:
YES if the value of the field is empty. Defaults to yes so if you don't override this, it will only consider child fields in emptiness calculation (this is the desired behavior for forms).

Class Method Detail

YES if the field itself is empty. Even if the value is non-empty, the field can be empty due to isVisible.
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)