Options
All
  • Public
  • Public/Protected
  • All
Menu

extrajs-dom

Index

Type aliases

Content

Content: xjs_Node | Node | string | null

RenderingFunction

RenderingFunction<T, U>: function
deprecated

XXX{DEPRECATED} : use {@link ProcessingFunction} instead.

Type parameters

  • T

  • U: object

Type declaration

    • (this: any, frag: DocumentFragment, data: T, opts: U): void
    • Parameters

      • this: any
      • frag: DocumentFragment
      • data: T
      • opts: U

      Returns void

ValueFunction

ValueFunction: function

A type of function passed to xjs_Element.attr to manipulate this element’s attributes.

This function type must take zero arguments and return a single primitive value: a string, number, boolean, or null. (If null is returned, the attribute is removed.)

Any this context in the function will almost always point to this xjs.Element object (but can be overridden).

returns

the value used as the attribute value to set, or null to remove

Type declaration

ValueObject

ValueObject: object

An object passed to xjs_Element.attr to manipulate many attributes at once.

An object with string indices and ValueType values.

Type declaration

ValueType

ValueType: string | number | boolean | null

A type to provide as a value argument for setting/removing an attribute.

  • If it is a string, number, or boolean, then the attribute value will be set to that value, stringified (number and boolean converted to a string).
  • If it is null, the attribute is removed.

Generated using TypeDoc