metronic-extension
v3.0.9
Published
Extension package for the Metronic WEB theme.
Downloads
367
Maintainers
Readme
metronic-extension
Extension package for the Metronic WEB theme.
Documentation
Metronic Extension V3 documentation can be found here.
If you are using Metronic Extension V2, please see the documentation here.
Installation
npm install --save metronic-extension
Release Notes
All changes can be found here.
- [3.0.9] - The release of the package has not yet been determined.
- Changed the default width of lines in the line chart component (
components.LineChart
) from 3px to 1px. - Added Docker build and demo run environments.
See the "How to build with Docker" and "How to start the demo with Docker" sections of README.md for details. - Fixed a bug in the line chart component (
components.LineChart
) where the first tick of the X axis was missing when the option to display the y axis on the right side (yAxisOpposite
) was enabled.
- Changed the default width of lines in the line chart component (
- [3.0.8] - 2024/2/16
Added an option to the line chart component (
components.LineChart
) for the number of tick intervals to be displayed on the x-axis (xAxisTickAmount
).
The default is the number of data on the x-axis.See here for more information.
Added option (
xaxis.labels.hideOverlappingLabels
) to prevent overlapping X axis labels on line and bar charts (components.LineChart
,components.BarChart
).The missing source map for the Metronic theme has been added to the dist.
If your theme does not have them, copy them into the theme directory and use them.
The source map is not necessarily required and the theme will work without it.
However, a 404 network error will occur.- dist/sourcemaps/plugins/custom/datatables/pdfmake.min.js.map
- dist/sourcemaps/plugins/global/toastr.js.map
- [3.0.7] - 2024/2/16
Added the following options to the line chart component (
components.LineChart
).- gradient: When enabled, the line is filled with a gradient. Default is true.
- lineWidth: The line width (in pixels). Default is 3.
- yAxisOpposite: When enabled, will draw the yaxis on the right side of the chart. Default is false.
See here for more information.
- [3.0.6] - 2024/2/13
Added a date range menu component (
components.initDaterangeMenu
).
Check here for usage and examples.
- [3.0.5] - 2024/2/12
An example has been added for switching the column display of a data table component (
components.ImageInput
) with an icon button.
Examples and codes can be found here.
Testing
With npm do:
npm test
How to build with Docker
Start the container.
docker-compose up -d
Add the
--build
option to reflect Dockerfile updates.docker-compose up -d --build
Use the
--no-cache
option to disable the cache at build time.
When using the--no-cache
option, it is necessary to execute the image build and container startup separately.docker-compose build --no-cache docker-compose up -d
Connect to container.
docker exec -it metronic_extension_app bash
Build the package (dist/ and types/ will be output).
cd /usr/src/app npm run build
How to start the demo with Docker
See here.
Author
Takuya Motoshima