@itwin/presentation-components
Version:
React components based on iTwin.js Presentation library
25 lines • 1.22 kB
TypeScript
/**
* @packageDocumentation
* @module Properties
*/
import { PropertyRecord } from "@itwin/appui-abstract";
import { IPropertyValueRenderer, PropertyValueRendererContext } from "@itwin/components-react";
/**
* Name of renderer that can be used in presentation rules to specify that a property should be rendered using [[InstanceKeyValueRenderer]].
* When building property records it will be replaced with [[InstanceKeyValueRendererName]].
* @internal
*/
export declare const InstanceKeyValueRendererNameInRules = "SelectableInstance";
/** @internal */
export declare const InstanceKeyValueRendererName: string;
/**
* Property value renderer for instance keys. If application provides a [[UnifiedSelectionContext]] and this value is
* clicked, the current selection is replaced with the instance pointed by the key. The selection changes at the default
* selection level as provided by the context.
* @public
*/
export declare class InstanceKeyValueRenderer implements IPropertyValueRenderer {
canRender(record: PropertyRecord): boolean;
render(record: PropertyRecord, context?: PropertyValueRendererContext): import("react").JSX.Element;
}
//# sourceMappingURL=InstanceKeyValueRenderer.d.ts.map