Javascript API

The Printess Editor is not a static, unmovable behemoth - even though it is rich in features. You can steer it the way you want by using the integrated Javascript API, which offers a plethora of functions and callbacks.

JS API documentation

The return value of the load() call holds a reference to the Printess JS-API, your direct link to the Printess Editor. It contains two interfaces to Printess, the api and ui object. ui is used to manipulate the UI of the editor, e.g. opening and closing it, while api lets you access and change template data or hook into functions of the editor. You can read the full JS-API documentation here:

JS-API

TS API documentation

If you’re using typescript you’ll find the API type definition below:

printess-editor.d.ts

printess-editor.d.ts nightly

SlimUI API

Since the SlimUI is a more lightweight solution and does not support all the features of the full Printess editor integration, it provides you with its own, slimmed down API.

See the whole SlimUI TS API