mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[API] Notes on context
This commit is contained in:
parent
1df573b8c6
commit
649567176d
@ -49,6 +49,13 @@ define([], function () {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if this provider can supply views for a domain object.
|
* Check if this provider can supply views for a domain object.
|
||||||
|
*
|
||||||
|
* When called by Open MCT, this may include additional arguments
|
||||||
|
* which are on the path to the object to be viewed; for instance,
|
||||||
|
* when viewing "A Folder" within "My Items", this method will be
|
||||||
|
* invoked with "A Folder" (as a domain object) as the first argument,
|
||||||
|
* and "My Items" as the second argument.
|
||||||
|
*
|
||||||
* @method canView
|
* @method canView
|
||||||
* @memberof module:openmct.ViewProvider#
|
* @memberof module:openmct.ViewProvider#
|
||||||
* @param {module:openmct.DomainObject} domainObject the domain object
|
* @param {module:openmct.DomainObject} domainObject the domain object
|
||||||
@ -58,11 +65,17 @@ define([], function () {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide a view of this domain object.
|
* Provide a view of this object.
|
||||||
|
*
|
||||||
|
* When called by Open MCT, this may include additional arguments
|
||||||
|
* which are on the path to the object to be viewed; for instance,
|
||||||
|
* when viewing "A Folder" within "My Items", this method will be
|
||||||
|
* invoked with "A Folder" (as a domain object) as the first argument,
|
||||||
|
* and "My Items" as the second argument.
|
||||||
|
*
|
||||||
* @method view
|
* @method view
|
||||||
* @memberof module:openmct.ViewProvider#
|
* @memberof module:openmct.ViewProvider#
|
||||||
* @param {module:openmct.DomainObject} domainObject the domain object
|
* @param {*} object the object to be viewed
|
||||||
* to be viewed
|
|
||||||
* @returns {module:openmct.View} a view of this domain object
|
* @returns {module:openmct.View} a view of this domain object
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user