fluid.messageResolver
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 |
---|---|---|---|
|
|
Object |
{ messageBase: "preserve" } |
|
|
Object |
{ } |
|
|
Array of ?? |
|
|
|
function |
|
|
|
function |
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...