@workgrid-widgets/view

2.0.0 • Public • Published

Workgrid Widgets - View

Usage

This package is published to and can be imported from the workgrid cdn.

The target is required and specifies the dom element in which the component should be rendered.

The getToken method is required and must return a Workgrid User Auth Token (it may be synchronous or asynchronous).

<script type="module">
  import view from 'https://cdn.workgrid.com/@workgrid-widgets/view@latest'

  view({
    target: document.querySelector('#container'),
    getToken: () => { ... },
  })
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @workgrid-widgets/view

Weekly Downloads

7

Version

2.0.0

License

Apache-2.0

Unpacked Size

1.67 kB

Total Files

3

Last publish

Collaborators

  • workgrid-bot