Smart Viewer
The Smart Viewer provides an interface for viewing and editing data of a single record.
Sample markup
<smart-viewer smart-object-name='customerViewer' smart-data-source='customerDataSource' smart-tableio-source='customerToolbar' smart-viewer-layout='Consultingwerk.SmartComponentsDemo.OERA.Sports2000.CustomerBusinessEntity/customer' focusOnAdd="inputName" focusOnCopy="inputSalesRep"> </smart-viewer>
Description
Attribute | Description |
---|---|
smart-object-name | An unique identifier used to obtain references to the Smart Viewer component |
smart-data-source | The smart-object-name of the Smart Data Source that the viewer should bind to as a value |
smart-viewer-layout | References the Smart Viewer Layout as retrieved from the backend service. |
smart-tableio-source | An optional attribute that takes the smart-object-name of a Smart Toolbar as a value. If set, the Smart Viewer will bind to the specified toolbar and respond to add, save, cancel and delete actions of said toolbar |
smart-viewer-template | (Not to be confused with "smart-viewer-layout") - represents the actual HTML template (not template URL) that the Smart Viewer should render. |
focusOnAdd | The name of the input field that should be focused when a record is added to the Smart Viewer's attached Smart Data Source. |
focusOnCopy | The name of the input field that should be focused when a record is copied in the Smart Viewer's attached Smart Data Source. |