|
Re: Error vendor.js when using ChartField [message #1834141 is a reply to message #1834125] |
Tue, 03 November 2020 16:57 |
Mr Robot Messages: 72 Registered: March 2020 |
Member |
|
|
Put: Chart.bundle.js, chart.css in ui.html/src/main/js.
You also need to create ChartField.js in same folder. And in ChartField.js
add this to import Chartjs.bundle.js
import {Chart} from './Chart.bundle.js';
to have content like this:
import {FormField} from '@eclipse-scout/core';
import $ from 'jquery';
import {Chart} from './Chart.bundle.js';
export default class ChartField extends FormField {
Chart.css will be imported trough Chart.bundle.js file
In index.js add this:
// import your custom JS files here
export {default as ChartField} from './ChartField';
export {default as ChartFieldAdapter} from './ChartFieldAdapter';
http://prntscr.com/vcqdnu
[Updated on: Tue, 03 November 2020 16:59] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04023 seconds