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.
...
Code Block |
---|
|
<smart-form smart-controllerform-layout="CustomerController<layout_url>" smart-template-url="<template_url>(onReady)="formReady($event)"></smart-form> |
Code Block |
---|
|
<smart-form smart-controller="CustomerController" [smart-template[component-type]="customerFormTemplateMyComponentType"></smart-form> |
Description
Attribute | Description |
---|
smart- |
controller name of layout URL or object that the Smart |
Controller that the form should use. A built-in DefaultFormController
is provided if no additional functionality is required.smart-template-url | The URL from which the form should fetch it's template |
[smart-template] | Bindable property that can be used to set the form's template dynamicallyForm 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. |