Web Components for Insights Hub and Industrial IoT
Asset Type View
The Asset Type View displays asset types available in the current tenant.
The view mode can be configured to display the asset types as listed items or in a tree view. A search field is displayed by default, but can be hidden.
Example¶
The following pictures show the Asset Type View in different view modes.
List¶
Tree¶
Interface¶
Models¶
IAssetType
interface IAssetType {
_links?: IAssetTypeLinks;
aspects?: any[];
description?: string;
etag?: string | number;
fileAssignments?: FileAssignment[];
id: string;
instantiable?: boolean;
name?: string;
parentTypeId?: string;
scope?: string;
sharing?: ISharing;
tenantId?: string;
variables?: any[];
}
IAssetTypeLinks
interface IAssetTypeLinks {
self?: ILink;
parent?: ILink;
}
IDataModel
interface IDataModel {
// forces reload of data, e.g. re-loading the assets
refresh(): void;
}
IViewModel
interface IViewModel {
refresh(): void;
}
Remarks¶
- The Asset Type View currently supports up to 20,000 asset types in list view mode.
- The tree view mode currently supports up to 1,000 asset types.
Roles¶
mdsp:core.AssetManagement.xxx
(Asset Management API is used)
Snippets¶
Refresh¶
The data model of the component can be refreshed, for example to update the view cyclically to get the latest asset changes:
assetTypeView.model.refresh();
Except where otherwise noted, content on this site is licensed under the Development License Agreement.
Last update: April 13, 2023