aurelia-ui-toolkits / issues

This repository's primary purpose is to host the discussions on aurelia-ui-toolkits issues :-)
1 stars 0 forks source link

Implement plugin configuration callback #4

Open JeroenVinke opened 8 years ago

JeroenVinke commented 8 years ago

We should allow the consumer of our plugins to configure them using the configuration callback provided by Aurelia. Such callback can give the consumer the possibility of selectively load plugins (or switch between free and PRO versions). It would also make it easier to expose settings of our plugins in the future

// selective loading
aurelia.use
      .plugin("aurelia-kendo-plugin", (config) => {
        config.useWidgets(["button", "grid"]);
      });

// free / PRO
aurelia.use
      .plugin("aurelia-kendo-plugin", (config) => {
        config.usePro();
        // or
        config.useBasic();
      });

references: original issue selective loading of plugins aurelia-validation does this

adriatic commented 8 years ago

Just to be sure that some reader in the distant future does not get confused: the same concept of selective loading should be available in all aurelia-ui-toolkits - not just KendoUI version