...
In the following example, taken from the Infusion Table of Contente comonent, this-ist functions are used to attach methods to the component object in the invokers
option.
Code Block | ||||
---|---|---|---|---|
| ||||
fluid.defaults("fluid.tableOfContents", {
gradeNames: ["fluid.viewComponent", "autoInit"],
...
invokers: {
...
hide: {
"this": "{that}.dom.tocContainer",
"method": "hide"
},
show: {
"this": "{that}.dom.tocContainer",
"method": "show"
}
}, |
In the following example, taken from the Infusion Inline Edit component, a this-ist function is used to invoke the init
function on the tinyMCE object associated with the component as a listener on the onCreate
event.
...