Detailed Description
- Examples
- cloud/gettingstarted-console/gettingStarted.js, cloud/gettingstarted-web/gettingStarted.js, cloud/nativemodellookup-console/nativeModelLookup.js, cloud/taclookup-console/tacLookup.js, onpremise/gettingstarted-console/gettingStarted.js, and onpremise/offlineprocessing-console/offlineProcessing.js.
Static Public Member Functions | |
| static | getValueHelper (elementData, propertyName) |
| Format a property value for display. | |
| static | getProfilesHelper (hardware) |
| Read the list of hardware profiles from the 'hardware' element data. | |
| static | getNoProfilesMessage () |
| The line printed when a lookup returned no device profiles at all. | |
Member Function Documentation
◆ getNoProfilesMessage()
|
inlinestatic |
The line printed when a lookup returned no device profiles at all.
- Returns
- {string} The message to print
◆ getProfilesHelper()
|
inlinestatic |
Read the list of hardware profiles from the 'hardware' element data.
An empty list is returned when the resource key has no access to the hardware aspect at all, because reading a property that is not there can raise rather than return an empty list.
- Parameters
-
{object} hardware The 'hardware' element data
- Returns
- {Array} The profiles, or an empty array
◆ getValueHelper()
|
inlinestatic |
Format a property value for display.
A property can be unavailable for three reasons, and each one reads differently so the person running the example can tell them apart. The property may have a value, it may have no value with the cloud service giving a reason (most often that the resource key is not entitled to it), or it may not be in the results at all.
- Parameters
-
{object} elementData Element data {string} propertyName Property name
- Returns
- {string} The value, or a line saying why there is none
- Examples
- cloud/gettingstarted-console/gettingStarted.js, cloud/gettingstarted-web/gettingStarted.js, cloud/nativemodellookup-console/nativeModelLookup.js, cloud/taclookup-console/tacLookup.js, onpremise/gettingstarted-console/gettingStarted.js, and onpremise/offlineprocessing-console/offlineProcessing.js.
