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

Properties for PrimeNG p-dropdown ignored #1628

Open
goldelehr opened this issue Jun 13, 2019 · 0 comments · May be fixed by #2100
Open

Properties for PrimeNG p-dropdown ignored #1628

goldelehr opened this issue Jun 13, 2019 · 0 comments · May be fixed by #2100

Comments

@goldelehr
Copy link

goldelehr commented Jun 13, 2019

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[X] support request

Current behavior
We are using ngx-formly in combination with the PrimenNG extension. We are trying to access certain properties of PrimeNG's p-dropdown component. We want to "styleClass" and "filter" but it seems the values are not forwarded through formly to p-dropdown.

Expected behavior

{
      key: 'marvel1',
      type: 'select',
      templateOptions: {
        label: 'Normal Select',
        styleClass: 'p-col-12',
        filter: true,
        options: [
          {label: 'Iron Man', value: 'iron_man'},
          {label: 'Captain America', value: 'captain_america'},
          {label: 'Black Widow', value: 'black_widow'},
          {label: 'Hulk', value: 'hulk'},
          {label: 'Captain Marvel', value: 'captain_marvel'},
        ],
      },
    }

This should set [styleClass]="p-col-12" and [filter]="true" on the p-dropdown component.

Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-gcwmbd

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 7.2.15
  • Browser: all
  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =12.4.0

gokhancelik pushed a commit to gokhancelik/ngx-formly that referenced this issue Feb 13, 2020
add filter and multiselect features for primeng select type.

Closes ngx-formly#1628
@gokhancelik gokhancelik linked a pull request Feb 13, 2020 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants