Documentation for a historical release of Infusion: 1.3
Please view the Infusion Documentation site for the latest documentation.
If you're looking for Fluid Project coordination, design, communication, etc, try the Fluid Project Wiki.

Data Binding Functions

fluid.applyChange(node, newValue, applier)


Description

Automatically apply to whatever part of the data model is relevant, the changed value received at the given DOM node.

Arguments

  • node {Array}: a jQuery object or DOM node
  • newValue {Function}: The new value to apply to the model
  • applier ChangeApplier: The ChangeApplier for the data model.

fluid.assembleModel(modelSpec)


Description

Arguments

  • modelSpec {Object}:

Return Value

Object: The assembled model

fluid.attachModel(baseModel, path, model)


Description

Arguments

  • baseModel {Object}:
  • path {String}:
  • model {Object}:

fluid.bindFossils(node, data, fossils)


Description

Arguments

  • node {Object}:
  • data {Object}:
  • fossils {Object}:

fluid.BINDING_ROOT_KEY


Description

A string used by fluid.bindFossils() to bind data to a DOM node.

fluid.findData(elem, name)


Description

Recursively find any data stored under a given name from a node upwards in its DOM hierarchy.

Arguments

  • elem {Element}:
  • name {String}:

Return Value

None: This function modifies the elem parameter.

fluid.findForm(node)


Description

Finds the nearest DOM <form> element that is an ancestor of the given element.

Arguments

  • node {DOM node}:

Return Value

The <form> element.

fluid.makeChangeApplier(model)


Description

Arguments

  • model {Object}:

Return Value

The that object that is the Change Applier

fluid.makeSuperApplier()


Description

Creates an object that can be used to assemble an applier. The object contains the following functions:

  • that.addSubApplier(path, subApplier)
  • that.fireChangeRequest(request)

Return Value

The super Applier.

fluid.model.applyChangeRequst(model, request)


Description

Arguments

  • model {Object}:
  • request {Change Request object}:

fluid.model.bindRequestChange(that) New in v1.2


Description

Arguments

  • that {Object}:

fluid.pathUtil.composePath(prefix, suffix)


Description

Compose a prefix and suffix EL path, where the prefix is already escaped. Prefix may be empty, but not null. The suffix will become escaped.

Arguments

  • prefix {String}:
  • suffix {String}:

Return Value

String: the path

fluid.pathUtil.getFromHeadPath(path)


Description

Arguments

  • path {String}:
    Return Value

String:

fluid.pathUtil.getHeadPath(path)


Description

Arguments

  • path {String}:

Return Value

String:

fluid.pathUtil.getPathSegment(path, i)


Description

Arguments

  • path {String}:
  • i {integer}:

Return Value

String:

fluid.pathUtil.getTailPath(path)


Description

Arguments

  • path {String}:

Return Value

String:

fluid.pathUtil.getToTailPath(path)


Description

Arguments

  • path {String}:

Return Value

String:

fluid.pathUtil.matchPath(spec, path)


Description

Arguments

  • spec {String}:
  • path {String}:

Return Value

String:

fluid.VALUE


Description

An empty object

fluid.value(nodeIn, newValue)


Description

A generalisation of jQuery.val to correctly handle the case of acquiring and setting the value of clustered radio button/checkbox sets, potentially, given a node corresponding to just one element.

Arguments

  • nodeIn {DOM node}:
  • newValue { }:

Return Value

String: