Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Add Support for mat-form-field appearance #38

Open
ArulRozario opened this issue Jan 29, 2020 · 6 comments
Open

Add Support for mat-form-field appearance #38

ArulRozario opened this issue Jan 29, 2020 · 6 comments

Comments

@ArulRozario
Copy link

Would it be possible to add an @input to mat-form-io or any other means to have different appearance to form-fileds as shown herehttps://stackblitz.com/angular/malkplgnkdb?file=src%2Fapp%2Fform-field-appearance-example.html. Our project heavily relies on Material form-io and we have all the fields with an outline appearance.

@travist
Copy link
Member

travist commented Jan 29, 2020

That should be a simple addition. This would make it so it can take an appearance input in the mat-formio. @vlad-shusterman can you maybe easily add this feature?

@paramjeetnandal
Copy link

Hi any update on this?

@vlad-shusterman
Copy link
Contributor

@paramjeetnandal, @ArulRozario
Hey, we've done with this feature.
Now you can use it like this:

{
  "label": "Textfield",
  "mask": false,
  "type": "textfield",
  "input": true,
  "key": "textfield",
  "appearance": "standard"
}

@ArulRozario
Copy link
Author

ArulRozario commented Mar 7, 2020

Thanks. Does this apply to all input fields like select, text area, datepicker etc?. the PR seems to have only text field.

@rspsuresh
Copy link

@paramjeetnandal, @ArulRozario
Hey, we've done with this feature.
Now you can use it like this:

{
  "label": "Textfield",
  "mask": false,
  "type": "textfield",
  "input": true,
  "key": "textfield",
  "appearance": "standard"
}

Could explain this briefly with full json

@albert5287
Copy link

@rspsuresh you could set the appearance to outline globally using a provider. Here is an example https://codinglatte.com/posts/angular/angular-material-form-field-appearance/

sadly #58 breaks that behavior. I have created a PR #76 to solve the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants