Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ftrackhq/ftrack-web-widget

A small library which encapsulates some logic which can be used to build custom dashboard widgets for ftrack
https://github.com/ftrackhq/ftrack-web-widget

frontend ftrack widgets

Last synced: 7 days ago
JSON representation

A small library which encapsulates some logic which can be used to build custom dashboard widgets for ftrack

Awesome Lists containing this project

README

        

# ftrack web widget

This small library encapsulates some logic which can be used to build custom dashboard widgets for ftrack.

## Installation

We recommend installing and bundling with NPM:

```javascript
npm install @ftrack/web-widget
```

## Usage

To use the library, define two functions `onWidgetLoad` and `onWidgetUpdate`
and initialize the library once the document is ready:

```javascript
import { initialize } from "@ftrack/web-widget";

/** Initialize widget once DOM has loaded. */
window.addEventListener("DOMContentLoaded", function onDomContentLoaded() {
initialize({
onWidgetLoad: onWidgetLoad,
onWidgetUpdate: onWidgetUpdate,
});
});
```

If used as an UMD module, the library exposes `ftrackWidget` on the global (`window`) object.

For a more complete example, see [ftrack JavaScript API: Basic Widget Example](https://bitbucket.org/ftrack/ftrack-javascript-api-example-basic-widget)

More information on the API used is available in the documentation [Creating a custom widget with React](https://help.ftrack.com/en/articles/4490918-creating-a-custom-widget-with-react).