@3t-transform/tf-form-viewer
v0.0.2
Published
## Installation
Downloads
5
Maintainers
Keywords
Readme
TfFormViewer
Installation
run npm i @3t-transform/tf-form-viewer
. Then import into module, passing in the URL for the FormBuilder API
imports: [
TfFormViewerModule.forRoot('https://localhost:9000'),
],
Usage
Add the <lib-tf-form-viewer>
tag where the form should appear, pass in the registrationId for the form and an
event handler function which will be called when the form is closed, including form submission.
There is an optional input for readonly
which defaults to false
.
<lib-tf-form-viewer
[registrationId]="registrationId"
(onClose)="onCloseHandler()"
readonly="true" <-- optional
></lib-tf-form-viewer>