Function prop

  • Set properties and attributes for the containing DOM element. Doing it this way as opposed to setting them directly from node() allows changing them later on without recreating the element itself. Also, code can be more readable this way. Note that when a nested observe() is used, properties set this way do NOT automatically revert to their previous values.

    Parameters

    • prop: string
    • value: any

    Returns void

  • Parameters

    • props: object

    Returns void

Generated using TypeDoc