Skip to content

0.2.8 interfaces IAttributes

Ivan S Glazunov edited this page Feb 20, 2015 · 2 revisions

IAttributes

interface IAttributes { [name: string]: TData; };

Describes the interface to the tag attributes.

  • Hash-Object with TData.
  • Supports only the first level of nesting.

Is transferred to the first pair of parentheses in the elements:

Examples

div({ key: 'value' })()
<div key="value"></div>

Attributes are render when rendering element.

div({ key: asSync(function() { return 'value'; }) })()
<div key="value"></div>
Clone this wiki locally