Get an item's configuration
Get the source ID and the item ID of the current item
Get the linked item ids of the specified source.
Source ID
Get item property
Item Property object
Params that would be used to modify the property key
Set an item's configuration
A generic JSON object that would be persisted in the presentation
Set item property
Item Property object
Params that would be passed to the underlying core function
Generated using TypeDoc
The Item class provides methods to get and set properties of an item
import Xjs from '@xjsframework/xjs'; import Item from '@xjsframework/xjs/core/app'; import ItemProps from '@xjsframework/xjs/props/item-props'; const xjs = new Xjs(); const item = new Item(xjs); const { id, srcId } = await item.getCurrentItem(); item.setProperty(ItemProps.customName, { id, srcId, value: 'SomeName' });