UNPKG

@itwin/presentation-common

Version:

Common pieces for iModel.js presentation packages

34 lines 1.26 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Hierarchies */ /** @internal */ export const COMPOSITE_LABEL_DEFINITION_TYPENAME = "composite"; /** @public */ export var LabelDefinition; (function (LabelDefinition) { /** * Checks if provided [[LabelDefinition]] has raw value of type [[LabelCompositeValue]]. * @public */ function isCompositeDefinition(def) { return def.typeName === COMPOSITE_LABEL_DEFINITION_TYPENAME; } LabelDefinition.isCompositeDefinition = isCompositeDefinition; /** * Creates [[LabelDefinition]] from string value. * @public */ function fromLabelString(label) { return { displayValue: label, rawValue: label, typeName: "string", }; } LabelDefinition.fromLabelString = fromLabelString; })(LabelDefinition || (LabelDefinition = {})); //# sourceMappingURL=LabelDefinition.js.map