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

AttributeDescription
smart-object-nameAn unique identifier used to obtain references to the Smart Viewer component
smart-data-sourceThe smart-object-name of the Smart Data Source that the viewer should bind to as a value
smart-viewer-layoutReferences the Smart Viewer Layout as retrieved from the backend service.
smart-tableio-sourceAn 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.
focusOnAddThe name of the input field that should be focused when a record is added to the Smart Viewer's attached Smart Data Source.
focusOnCopyThe name of the input field that should be focused when a record is copied in the Smart Viewer's attached Smart Data Source.