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

label position not works on toggle type in formly material #3006

Closed
wizardnet972 opened this issue Oct 9, 2021 · 0 comments · Fixed by #3013
Closed

label position not works on toggle type in formly material #3006

wizardnet972 opened this issue Oct 9, 2021 · 0 comments · Fixed by #3013

Comments

@wizardnet972
Copy link

wizardnet972 commented Oct 9, 2021

Description
labelPosition: 'before' not works. the MatSlideToggle api:

@Input()
labelPosition: 'before' | 'after'

Whether the label should appear after or before the slide-toggle. Defaults to 'after'.

 


Minimal Reproduction

   {
      key: 'Toggle',
      type: 'toggle',
      templateOptions: {
        label: 'Toggle label',
        description: 'Toggle Description',
        required: true,
        labelPosition: 'before', //<--- not works.
        attributes: {
          labelPosition: 'before', //<--- not works.
        }
      },
    },

https://stackblitz.com/edit/angular-ffeq7y?file=src%2Fapp%2Fapp.component.ts

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