@itwin/presentation-common
Version:
Common pieces for iModel.js presentation packages
29 lines • 1.41 kB
TypeScript
/** @packageDocumentation
* @module PresentationRules
*/
import { NodeArtifactsRule } from "../hierarchy/NodeArtifactsRule.js";
import { ExtendedDataRule } from "./ExtendedDataRule.js";
import { GroupingRule } from "./GroupingRule.js";
import { InstanceLabelOverride } from "./InstanceLabelOverride.js";
import { SortingRule } from "./SortingRule.js";
/**
* Customization rules allow customizing each node or content item separately.
* Most of the rules have a `condition` property which uses [ECExpressions]($docs/presentation/customization/ECExpressions.md)
* for conditional rule filtering.
*
* **Nested customization rules:**
*
* Customization rules may be specified at ruleset level, in which case they're
* applied to all content produced by the ruleset, or nested under navigation rules,
* in which case they're applied only for nodes created by those rules.
*
* **Customization rule priorities:**
*
* Customization rules have a `priority` attribute which defines the order in which they're applied. If priorities match,
* rules engine looks at the nesting level - the deeper the rule is nested, the higher is its `priority`.
* If the nesting levels also match, the rule defined first wins.
*
* @public
*/
export declare type CustomizationRule = InstanceLabelOverride | GroupingRule | SortingRule | ExtendedDataRule | NodeArtifactsRule;
//# sourceMappingURL=CustomizationRule.d.ts.map