This is the default InlineEditorDelegate for
SC.LabelView. The default editor
Only one editor is allowed to be active at a time. If another view requests an editor while an editor is already active, the delegate will first attempt to commit the existing editor, then discard it if commit fails, and fail to acquire if the active editor could not be discarded.
Each time an editor is required, it instantiates it and appends it to the same
parentView as the view being edited. The editor is responsible for positioning
itself correctly in its
Defined in: inline_text_field.js
- SproutCore 1.0
Field DetailSC.InlineTextFieldDelegate.editor SC.InlineTextFieldView
Class Method Detail
If an editor is currently active, dismisses it by first attempting to commit and if that fails attempting to dismiss. If that fails, the acquire fails and returns null.
Otherwise, it creates the editor as a child of the client view's
and returns it.
The default editor is an
SC.InlineTextFieldView. The client view may
customize this by setting a different
inlineEditor as its
Cleans up the given editor by simply destroying it, which removes it from the view hierarchy. The client view should null any references to the editor so it may be garbage collected.
- whether the cleanup succeeded