Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Target

Target declaration defining how to update elements matching selector

Hierarchy

  • Target

Index

Properties

attribute

attribute: undefined | string

which attribute on matches to update with the property value

dom

dom: undefined | DOMUpdateFn

a function that will be called when the property value changes - usually used for general DOM updates

property

property: undefined | string

which property on matches to update with the property value

selector

selector: string | ((value: any, el: Element | ServerElement) => string)

CSS3 selector

text

text: undefined | boolean

should the textContent of matches be set to the property value

use

use: undefined | UseFn

a function that returns the value that should be used in updates (defaults to the property value itself)

Generated using TypeDoc