Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 895 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 895 Bytes

Xonomy

This is a Typescript port of Xonomy. Available on NPM as @elexis-eu/xonomy

Usage:

In a bundled project (rollup, webpack, etc.)

import Xonomy from 'xonomy';

const x = new Xonomy();
// now use x as you would normally.

In browser:

Add the following lines to your html:

<link rel="stylesheet" href="distr/xonomy.css">
<script src="dist/xonomy.umd.js">

This will set window.Xonomy to the Xonomy constructor. Create an instance of the Xonomy editor as follows:

const x = new Xonomy();

The x Xonomy instance can now be used as described in the xonomy manual. Note that the document was written when Xonomy used a global instance, and so uses Xonomy.someFunction() for nearly every function, but in this version you should use the x instance instead.