Class mindmaps.Document
Defined in: Document.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new Document.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
mindmaps.Document.fromJSON(json)
Creates a new document object from a JSON string.
|
<static> |
mindmaps.Document.fromObject(json)
Creates a new document object from a generic object.
|
Returns the created date.
|
|
isNew()
Tells whether this document considerd as "new", that is has not been saved
yet.
|
|
Returns a JSON representation of the object.
|
|
<static> |
mindmaps.Document.sortByModifiedDateDescending(doc1, doc2)
Sort function for Array.sort().
|
<private> |
toJSON()
Called by JSON.stringify().
|
Method Detail
<static>
{mindmaps.Document}
mindmaps.Document.fromJSON(json)
Creates a new document object from a JSON string.
- Parameters:
- {String} json
- Returns:
- {mindmaps.Document}
<static>
{mindmaps.Document}
mindmaps.Document.fromObject(json)
Creates a new document object from a generic object.
- Parameters:
- {Object} json
- Returns:
- {mindmaps.Document}
{Date}
getCreatedDate()
Returns the created date.
- Returns:
- {Date}
{Boolean}
isNew()
Tells whether this document considerd as "new", that is has not been saved
yet.
- Returns:
- {Boolean}
{String}
serialize()
Returns a JSON representation of the object.
- Returns:
- {String} the json.
<static>
mindmaps.Document.sortByModifiedDateDescending(doc1, doc2)
Sort function for Array.sort().
- Parameters:
- {mindmaps.Document} doc1
- {mindmaps.Document} doc2
<private>
toJSON()
Called by JSON.stringify().