Include Page |
---|
| sneak peek warning |
---|
| sneak peek warning |
---|
|
Wiki Markup |
{div:class=floatRight}
{panel:title= On This Page| borderStyle=solid| borderColor=#ccc| bgColor=#fff}
{toc:minLevel=2|maxLevel=5}
{panel}
{div} Div |
---|
|
Panel |
---|
borderColor | #ccc |
---|
bgColor | #fff |
---|
title | On This Page |
---|
borderStyle | solid |
---|
| |
|
Invokers: Dependency Resolution At Invocation
...
Examples of Arguments to Invokers
Wiki Markup |
{span:class= Span |
---|
| }
|{code:javascript} |
Code Block |
---|
|
invokers: {
myFunc: {
funcName: "nspace.myFuncImpl",
args: ["@0", {parent}.field, "@1"]
}
} |
|
{code}|
{:|=}{code}
{:|=} |
that.myFunc("foo", "bar");
|
|
{code}
{:|=} |
nspace.myFuncImpl("foo, "CATT", "bar); |
|
{code}|{span} |
Examples
Wiki Markup |
{span:class= Span |
---|
| }
|{code:javascript} |
Code Block |
---|
|
fluid.defaults("cspace.autocomplete.popup", {
invokers: {
treeBuilder: {
funcName: "cspace.autocomplete.modelToTree",
args: ["{popup}.model", "{popup}.events"]
}
},
...
};
|
|
{code}| {{}} {{}} {{}} {{}} {{}} {{cspace.autocomplete.modelToTree()
|
}}|
{ |
Span |
} Wiki Markup |
{span:class= |
---|
| }
|{code:javascript} |
Code Block |
---|
|
fluid.defaults("test.testComponent", {
template: "Every {0} has {1} {2}(s)",
invokers: {
render: {
funcName: "fluid.formatMessage",
args:["{testComponent}.options.template", "@0"]
}
},
...
|
|
{code}| {{}} {{}} {{}} {{}} {{}} {{[|fluidformatMessage]}}. |
{span} |
The following two methods of declaring an invoker are equivalent:
...