Class: NavItem¶
Member Of Namespace: clbCollabNav
Local Navigation
Description¶
Client representation of a navigation item.
Function: toJson¶
Return a server object representation that can be easily serialized to JSON and send to the backend.
-
toJson()¶ Return object: server object representation
Function: update¶
-
update(attrs)¶ Arguments: - attrs (object) – NavItem instance attributes
Return NavItemt: this instance
Function: ensureCached¶
-
ensureCached()¶ Return NavItem: this instance
Function: NavItem.fromJson¶
Build an instance from the server object representation.
-
NavItem.fromJson(collabId, json)¶ Arguments: - collabId (number) – collab ID
- json (string) – server object representation
Return NavItem: new instance of NavItem