viewType

widgetTemplate

Properties:

Name

Type

Description

The

Simplate

template used to render the view's main DOM element when the view is initialized.
This template includes loadingTemplate.
The default template uses the following properties:
name description
----------------------------------------------------------------
id main container div id
title main container div title attr
cls additional class string added to the main container div
resourceKind set to data-resource-kind

createErrorHandlers() → {Array}

Returns:

Returns an array of error handlers

Type

Array

createLayout() → {Array.<Object>}

Sets and returns the Detail view layout by following a standard for section and rows:
The `this.layout` itself is an array of section objects where a section object is defined as such:
{
name: 'String', // Required. unique name for identification/customization purposes
title: 'String', // Required. Text shown in the section header
list: boolean, // Optional. Default false. Controls if the group container for child rows should be a div (false) or ul (true)
children: [], // Array of child row objects
}
A child row object has:
{
name: 'String', // Required. unique name for identification/customization purposes
property: 'String', // Optional. The property of the current entity to bind to
label: 'String', // Optional. Text shown in the label to the left of the property
onCreate: function(), // Optional. You may pass a function to be called when the row is added to the DOM
include: boolean, // Optional. If false the row will not be included in the layout
exclude: boolean, // Optional. If true the row will not be included in the layout
template: Simplate, // Optional. Override the HTML Simplate used for rendering the value (not the row) where `$` is the row object
tpl: Simplate, // Optional. Same as template.
renderer: function(), // Optional. Pass a function that receives the current value and returns a value to be rendered
encode: boolean, // Optional. If true it will encode HTML entities
cls: 'String', // Optional. Additional CSS class string to be added to the row div
use: Simplate, // Optional. Override the HTML Simplate used for rendering the row (not value)
provider: function(entry, propertyName), // Optional. Function that accepts the data entry and the property name and returns the extracted value. By default simply extracts directly.
value: Any // Optional. Provide a value directly instead of binding
}

Returns:

this.tools

Type

Object

determineSendType()

Determines the method to use for sending the error report
'mailto': Used on Mobile devices to indicate to form a mailto: url
'copy': Used on desktops to indicate a "copy" button should be placed on the page

onTransitionTo(self)

Parameters:

open()

Available Options:
horizontal: True if the transition is horizontal, False otherwise.
reverse: True if the transition is a reverse transition (right/down), False otherwise.
track: False if the transition should not be tracked in history, True otherwise.
update: False if the transition should not update title and back button, True otherwise.
scroll: False if the transition should not scroll to the top, True otherwise.