get(elementId )

Returns a reference to an element in a collection.

Parameters:

  • elementId (String): element id


Example:

Set the newRecord property of an edit form:

View.panels.get('employeeForm').newRecord = true;