The name of the method rule under the childNameParentRefChain, that can be used for generating the child rule name for the dropped part. Example getTargetChileName
.
The method must have the following signature: getTargetChileName(targetRefchain: string, itemKey: string): string
.
The arguments of the method are the target refchain, where the item will be added, and the item key.
The return value is a child name of the target child rule.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
The reference chain to the owner of the child name generation method. See childNameMethodName for details.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
Internal Use Only.
Flags : Cached (Note this is uncached)
Expression : "Palette"
The default model refChain (if targetParentRefChain
and targetMethodName
are not specified) where the dropped item will be added to as a child. If omitted, the new items will be added under the model root.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : R.rootModel.refChain
The expression that, when evaluated on the client after loading the UI, returns the palette items hierarchy (in form of an array).
Each element can be either a category or an item.
The category format is this:
{
category: string;
children: any[];
}
where children is an array of lower level categories, or category items.
The item format is this:
{
title: string;
thumbnail: string;
key?: string;
dropData: {
dragData: DragData;
bbox: Box3;
instanceMetadata: {
designName: string;
qty?: number;
parameters?: { [param: string]: any; }
}
}
}
Where:
The dropData format is this:
Flags : Cached, Parameter, Spec, Required (Note this is uncached)
Expression : ``
The owner of the selectedItemBindTarget rule.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : this
The name of the rule to bind the selected item's data to.
The item format is this:
{
key?: string;
instanceMetadata: {
designName: string;
qty?: number;
parameters?: { [param: string]: any; }
}
}
Where:
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
The name of the method rule under the targetParentRefChain, that can be used for determining the target model for the dropped part. Example getTargetRefchain
.
The method must have the following signature: getTargetRefchain(itemKey: string): string
.
The argument of the method is a item key.
The return value is a refChain of the target model, where the dropped item will be added to as a child.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
The reference chain to the owner of the instance target customization method. See targetMethodName for details.
Flags : Cached, Parameter, Spec (Note this is uncached)
Expression : ""
UIPalette (d.1.0)
Mixins: UITitleMixin, UIControlMixin
A UIPalette is a control that allows displaying a hierarchically organized library of items and handles dropping items to the model (via UIGeometryViewer).