Child pages
  • Expansion of Component Options

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Expansion of IoC references, written as strings in the form "{context}.path" as a result of the Value Resolution process, and
  • Expansion of expanders, which are blocks of JSON occurring in the options with the key expander

...

Expanders are specified using the keyword "expander:" in the component defaults:

...

Name

Description

func/funcName

Either an IoC reference to a function (an invoker or other function member) or else a global function name holding the function to be invoked

args

An array of arguments (or single argument) to be passed to the user-provided function specified in func/funcName.

...

Section
Column
width50%
Code Block
javascript
javascript
fluid.defaults("cspace.specBuilder", {
    components: {
        specBuilderImpl: {
            type: "cspace.specBuilderImpl",
            options: {
                unexpanded: {
                    expander: {
                        type: "fluid.noexpand",
                        value: "{specBuilder}.urlExpander"
                    }
                }
            }
        }
    }
});
Column

In this example, the function name {specBuilder}.urlExpander will NOT be resolved as an IoC reference. The value {specBuilder}.urlExpander will be assigned to the option named unexpanded.