Class: NavItem

Member Of Namespace: clbCollabNav

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.

Arguments:
  • collabId (number) – collab ID
  • json (string) – server object representation
Return NavItem:

new instance of NavItem