0.0.2 • Published 3 years ago

@3t-transform/tf-form-viewer v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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>
0.0.2

3 years ago

0.0.1

3 years ago