Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection multiple with material #3874

Closed
os2be opened this issue Feb 28, 2024 · 1 comment
Closed

Selection multiple with material #3874

os2be opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@os2be
Copy link

os2be commented Feb 28, 2024

I use angular with formly 6.1.1 and material

I search to create an select who allow multiple selection

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
    };
  };

it's like multiple it's unknow

i checked this api: https://formly.dev/docs/api/ui/material/select/ but it don't realy understand it

@os2be os2be added the question label Feb 28, 2024
@aitboudad
Copy link
Member

It should work normally, passing multiple: true, to material select type will enable multi selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants