web pluggable widget javascript

0
Hello,   I want to implement a javascript file into a web pluggable widget. Where do I put these and how/where to import this into the widget?   Kind regards, Steven Keersmaekers
asked
2 answers
1

Hi Steven,

Pluggable widget are React based, so you have learn how to use it, instead of $ (jquery). Not all libs are easy to implement in React (though possible) It would be wise to find a good React Lib for data pickers. 

For example https://reactdatepicker.com/#example-date-range

Or https://github.com/airbnb/react-dates

Walk trough the how to pluggable widget and you will find your way.

Enjoy the journey!

Andries

answered
0

Hi Steven,

There a plenty of examples in this tutorial

https://docs.mendix.com/howto/extensibility/pluggable-widgets

Samples are in TypeScript

import classNames from "classnames"; // import npm module
import { myFunction } from"./utils"; 

Cheers, Andries

answered