@combeenation/custom-code-sdk
    Preparing search index...

    Function addComboboxControl

    • Type Parameters

      • TMode extends "single" | "multi" | "no-selection"
      • TValueType extends "string" | "number" = never

      Parameters

      • parent: ParentCtrl
      • options: {
            mode: TMode;
            position?: AddCtrlPosition;
            properties?: Partial<CreateComboboxProperties>;
        } & (
            TMode extends "no-selection"
                ? { valueType?: undefined }
                : { valueType: TValueType }
        )
        • mode: TMode
        • Optionalposition?: AddCtrlPosition
        • Optionalproperties?: Partial<CreateComboboxProperties>

          When using properties of type LiquidTemplateSource, you have to manually cast the given string to LiquidTemplateSource like this:

          combobox.setProperty('dataTemplate', '<span>{{ Name }}</span>' as LiquidTemplateSource);
          

      Returns Combobox<DataListValue<TMode, TValueType>>