ProtoTwin API
    Preparing search index...

    Function Dropdown

    • Property decorator that specifies that the property should use the dropdown editor.

      Parameters

      • mapping: any

        The mapping from dropdown option name to option value.

      • selected: undefined | ((target: any, value: any) => Promise<boolean>) = undefined

        The callback function triggered prior to the value being set.

      • readable: Mode = Naming.Mode.Default

        The naming mode used to transform the dropdown values to readable labels.

      • searchThreshold: number = 10

        The minimum number of items required to display the search box.

      • maxCount: number = 10

        The maximum number of items to display.

      Returns PropertyDecorator

      The property decorator instance.