Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geocortex/framework/ui/BindingTreeBuilder"

Index

Functions

buildAttributeBinding

  • buildAttributeBinding(el: HTMLElement, binding: BindingExpression, currentContext: any, directAttach: boolean, viewBase: ViewBase): boolean
  • Builds a DOM attribute binding, binding a DOM attribute to a view model property or attaching directly to the DOM object.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • directAttach: boolean

      Whether or not to directly modify the actual DOM element's own properties. Defaults to false.

    • viewBase: ViewBase

    Returns boolean

buildClassBinding

  • Parameters

    Returns boolean

buildDisabledBinding

  • Builds an enabled/disabled binding, simulating a cascading enabled/disabled state.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildDomBinding

  • Builds a one-time DOM binding, binding to a DOM element in the view codebehind.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildEventBinding

  • Parameters

    Returns boolean

buildSourceBinding

  • Builds a complex binding between a source and template element. Allows binding to collections of complex objects or singular complex objects.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • bindingNode: BindingNode

      The current binding node in the binding tree.

    • viewBase: ViewBase

    Returns boolean

buildStyleBinding

  • Builds an inline CSS style binding.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildTextBinding

  • Builds a sanitized text binding. Strips out unsafe characters, and allows direct referencing of language keys.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildTree

  • Builds a tree of all binding expressions in this view and hooks up binding events as it goes. This method will recursively descend the DOM structure of its visual root and resolve binding expressions.

    Parameters

    Returns any

buildValueBinding

  • Builds a two-way binding between a form control and an Observable.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildVarBinding

  • Builds a var binding, creating a variable in the view that references a DOM element.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns void

buildVisibilityBinding

  • Builds a visibility binding.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean

buildWidgetBinding

  • Builds a (one-time) widget binding.

    Parameters

    • el: HTMLElement

      The element being bound.

    • binding: BindingExpression

      The binding expression.

    • currentContext: any

      The current data context.

    • viewBase: ViewBase

    Returns boolean