Material and select multiple with formly

50 views Asked by At

i search a way to create a select multiple (typescript way and not JSON way)

formly don't seem to like multiple: true

const jobName: FormlyFieldConfig = initMultipleSelect(
     'Job type',
     {
        multiple: true,
        type: InputDataAttribut.InputType.select,
        label: 'Job type',
        options: jobTypeList
    });   


export function initMultipleSelect(key: string, props: FormlyFieldProps): FormlyFieldConfig {
    return {
        className: 'select-selector',
        key: `${key}`,
        type: 'select',
        props: props
    };
  };
0

There are 0 answers