Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagexml
<smart-form smart-controllerform-layout="CustomerController<layout_url>" smart-template-url="<template_url>(onReady)="formReady($event)"></smart-form>


Code Block
languagexml
<smart-form smart-controller="CustomerController" [smart-template[component-type]="customerFormTemplateMyComponentType"></smart-form>

Description

AttributeDescription
smart-
controller
form-layout

The

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-urlThe URL from which the form should fetch it's template

[smart-template]

Bindable property that can be used to set the form's template dynamically

Form should render.

component-type

This setting allows you to render custom components as part of the Smart Form, without a JSON layout.
onReadyAn event that fires when the Smart Form has finished initialising.