We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Question How to display a simple HTML hyperlink in a form?
This is my custom type
import { Component } from '@angular/core'; import { FieldType } from '@ngx-formly/core'; @Component({ selector: 'formly-link-component', template: ` <a [href]="to.url">{{ to.title }}</a> `, }) export class FormlyLinkComponent extends FieldType { }
In app.module.ts I have added
{ name: "link", component: FormlyLinkComponent },
Here is a stackblitz example. The link component is always ignored when loading from JSON https://stackblitz.com/edit/ngx-formly-ui-material-fv4a2x?file=src/assets/simple.json
The text was updated successfully, but these errors were encountered:
use widget:
widget
{ "type": "string", + "widget": { + "formlyConfig": { + "type": "link", + "templateOptions": { "url": "https:\/\/en.wikipedia.org\/wiki\/Chuck_Norris" } + } + } }
#1982 (comment)
Sorry, something went wrong.
thanks, that worked
No branches or pull requests
Question
How to display a simple HTML hyperlink in a form?
This is my custom type
In app.module.ts I have added
Here is a stackblitz example. The link component is always ignored when loading from JSON
https://stackblitz.com/edit/ngx-formly-ui-material-fv4a2x?file=src/assets/simple.json
The text was updated successfully, but these errors were encountered: