handsontable / vue-handsontable-official

Vue Data Grid with Spreadsheet Look & Feel. Official Vue wrapper for Handsontable.

Home Page:https://handsontable.com/docs/vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting the license key globally

davestewart opened this issue · comments

Is there a way to set the license key globally?

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
});

OK, thanks :)