Setting the license key globally
davestewart opened this issue · comments
Dave Stewart commented
Is there a way to set the license key globally?
Wojciech Czerniak commented
No, sorry. Might by a good feature request for https://github.com/handsontable/handsontable
Maybe you can have a shared config object and extend it when needed?
shared.js
export const baseConfig = {
licenseKey: '0000-000-0000-0000',
// other shared settings
};
app.js
import { baseConfig } from './shared`;
new Handsontable(container, Object.assign(baseConfig, {
// instance settings
});
Dave Stewart commented
OK, thanks :)