Smart Form
The Smart Form provides a container for other SmartComponents NG2 components. The Smart Form declares the Type Script controller class that should handle events raised by the components.
Sample markup
<smart-form smart-form-layout="<layout_url>" (onReady)="formReady($event)"></smart-form>
<smart-form [component-type]="MyComponentType"></smart-form>
Description
Attribute | Description |
---|---|
smart-form-layout | The layout URL or object that the Smart Form should render. |
component-type | This setting allows you to render custom components as part of the Smart Form, without a JSON layout. |
onReady | An event that fires when the Smart Form has finished initialising. |