Child pages
  • fluid.messageResolver

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

Skip to end of metadata
Go to start of metadata

This functionality is Sneak Peek status. This means that the APIs may change. We welcome your feedback, ideas, and code, but please use caution if you use this new functionality.

fluid.messageResolver(options)

A message resolver is a small component that can be used to look up message codes, inject string fragments into the messages, and return full strings. A message resolver is included automatically in any renderer-bearing components created using fluid.initRendererComponent, but can also be created directly for any components that might find it useful.

fluid.messageResolver(options);

File name: Fluid.js

Parameters

options (Object) (optional) A collection of name-value pairs that configure the behaviour of the message resolver. See #Options below for more information.

Return Value

Object A message resolver component object. See below for more information about how to use this object.


Options

The options parameter is an optional collection of name-value pairs that configure the message resolver:

Name

Description

Values

Default

mergePolicy

 

Object

{
    messageBase: "preserve"
}

messageBase:

 

Object

{ }

parents:

 

Array of ??

[]

parseFunc

 

function

fluid.identity

resolveFunc

 

function

fluid.stringTemplate

Functions

Example

var recordName = that.messageResolver.resolve(that.options.related);

In this example, description here...

var title = that.messageResolver.resolve("title", {recordType: recordName});

In this example, description here...

  • No labels