$lz$class_TypeService
Type service.

JavaScript: $lz$class_TypeService

lz.Type is the single instance of the class lz.TypeService which implements the runtime presentation type system.

Class Attributes

Name (CSS property) Type (tag) Type (js) Default Category
Type lz.TypeService $lz$class_TypeService   readonly
  The type service. Also available as the global lz.Type.

Methods

acceptTypeValue()
$lz$class_TypeService.acceptTypeValue(type, value, node, attribute);
Converts a string representation of a value to a Javascript representation using the presentation type's accept method
Parameter Name Type Description
type   String the type name
value   String the string representation of the desired value
node   lz.node the node context
attribute   String the attribute context
Returns Type Description
  Any the string parsed as the type

presentTypeValue()
$lz$class_TypeService.presentTypeValue(type, value, node, attribute);
Converts a Javascript representation of a value to a string representation using the presentation type's present method
Parameter Name Type Description
type   String the attribute type
value   * the Javascript representation of the value
node   lz.node the node context
attribute   String the attribute context
Returns Type Description
  value String