Options
All
  • Public
  • Public/Protected
  • All
Menu

Registers chardin as a custom binding in knockout

Hierarchy

  • chardin

Index

Methods

Methods

Static init

  • init(element: HTMLLIElement, valueAccessor: any, allBindings: any): void
  • This will be called when the binding is first applied to an element. Set up any initial state, event handlers, etc. here.

    Parameters

    • element: HTMLLIElement

      list element

    • valueAccessor: any

      A JavaScript function that you can call to get the current model property that is involved in this binding.

    • allBindings: any

      A JavaScript object that you can use to access all the model values bound to this DOM element.

    Returns void

Static update

  • update(element: HTMLLIElement, valueAccessor: any, allBindings: any): void
  • This will be called once when the binding is first applied to an element, and again whenever any observables/computeds that are accessed change. Update the DOM element based on the supplied values here.

    Parameters

    • element: HTMLLIElement

      list element

    • valueAccessor: any

      A JavaScript function that you can call to get the current model property that is involved in this binding.

    • allBindings: any

      A JavaScript object that you can use to access all the model values bound to this DOM element.

    Returns void