Versions Compared

Key

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

...

Code Block
languagejs
fluid.defaults("fluid.tutorials.buttonHolder", {
    gradeNames: ["fluid.viewComponent", "autoInit"],
    selectors: {
        buttonstatus: ".holder-status",
        indicator: ".buttonholder-ind"
    },
    events: {
        onSelect: null
    },
    listeners: {
        onSelect: {
            funcName: "fluid.tutorials.buttonHolder.selectHandler",
            args: ["{that}.dom.indicator", "arguments.0"]
        }
    },
    invokers: {
        highlightStatus: {
            funcName: "fluid.tutorials.buttonHolder.highlight",
            buttonargs: ["{that}.dom.button"status"]
        }
    }
});

Using the DOM Binder Programmatically

...