npm install --save-dev hexagon-jsnode_modules/hexagon-js/dist dist/
- assets/
- hexagon.css
- hexagon.jsdist/
- hexagon.print.css
- hexagon.print.jsdist/assets directory contains the font files that hexagon uses for the icons. This should be copied along with the other files. dist directory, however these are not required when copying the pre-built version. import { DatePicker } from 'hexagon-js';hx.xxx apis are available and exported from hexagon-js.
If you are using hx.theme() you will need to add the following to your app, before running any hexagon code: import { theme } from 'hexagon-js';
import currentTheme from 'hexagon-js/dist/hexagon.theme.js';
theme(currentTheme);
...hx.theme() import { theme } from 'hexagon-js';
console.log(theme().palette.actionCol);npm install --save hexagon-jsconst hexagon = require('hexagon-js')
hexagon.light.build({
// the directory to output the library to
dest: 'libs/hexagonjs',
// include just the modules you are interested in, or leave as undefined to get all the modules
modules: ['plot', 'titlebar', 'base']
})hexagon.light and hexagon.dark with a third, more basic theme available called hexagon.base.
Save this in a file, then run it with node to generate your build. This api can be easily integrated with gulp or grunt, or can even be run as an npm task. dest assets directory falsefalsehx of .hx-form ) "hx"