TypeScript adaptation of the Omnis FiveStars tutorial
- Follow the Omnis FiveStars tutorial (https://developer.omnis.net/technotes/tnjc0009.jsp)
- Download the files from the repos, install the dependencies and build the component
$ npm install
$ npm run build
- Copy the file
ctl_omnis_fivestars.js
and./dist/fivestars.umd.js
to<Omnis>/html/scripts/
- Update the
jsctempl.html
to includefivestars.umd.js
before thectl_net_omnis_fivestars.js
:
<!-- Omnis Studio JavaScript client scripts -->
<script type="text/javascript" src="scripts/ssz.js"></script>
<script type="text/javascript" src="scripts/omjsclnt.js"></script>
<script type="text/javascript" src="scripts/omjqclnt.js"></script>
<link type="text/css" href="css/rating.css" rel="stylesheet" />
<script type="text/javascript" src="scripts/rating.js"></script>
<!--bundled/compiled TS component -->
<script type="text/javascript" src="scripts/fivestars.umd.js"></script>
<script type="text/javascript" src="scripts/ctl_net_omnis_fivestar.js"></script>
- Test the tutorial Form