Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Div
classfloatRight
solid
Panel
borderStyle
borderColor#ccc
bgColor#fff
borderStylesolid
titleOn This Page
Table of Contents
toc
maxLevel
5
minLevel2maxLevel5

Invokers: Dependency Resolution At Invocation

...

Span
classborderless-table
Code Block
javascript
javascript
invokers: {
    myFunc: {
        funcName: "nspace.myFuncImpl",
        args: ["@0", {parent}.field, "@1"]
    }  
}

In this example, if

Code Block
javascript
javascript
borderStylenonejavascript
that.field = "CATT";

and the invoker is called with

Code Block
javascript
javascript
borderStylenonejavascript
that.myFunc("foo", "bar");

then the invoker will call the implementation function with

Code Block
javascript
javascript
borderStylenonejavascript
nspace.myFuncImpl("foo, "CATT", "bar);

...