UNPKG

@itwin/presentation-common

Version:

Common pieces for iModel.js presentation packages

28 lines 1.09 kB
/** @packageDocumentation * @module PresentationRules */ import { RuleBase } from "../Rule.js"; /** * Node artifacts rules are used to create and assign artifacts to specific nodes. The artifacts can be * accessed when evaluating parent node's `hideExpression` to decide whether it should be hidden or not. * * @see [Node artifacts rule reference documentation page]($docs/presentation/hierarchies/NodeArtifactsRule.md) * @public */ export interface NodeArtifactsRule extends RuleBase { /** Used for serializing to JSON. */ ruleType: "NodeArtifacts"; /** * Specifies an [ECExpression]($docs/presentation/customization/ECExpressions.md#rule-condition) that * allows applying node artifacts based on evaluation result, e.g. by some property of the parent node. */ condition?: string; /** * A map of [ECExpressions]($docs/presentation/hierarchies/ECExpressions.md#specification) whose evaluation results * are used as artifact values. */ items: { [key: string]: string; }; } //# sourceMappingURL=NodeArtifactsRule.d.ts.map