0.0.8 • Published 2 years ago

entree-ui-core v0.0.8

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Core

Usage

import { init, getForm } from 'entree-ui-core';

init({ token: 'my-api-token' });

const form = await getForm('my-form-slug');

// get the form's name
const name = form.attributes.name;

// get a collection of questions
const collection = form.attributes.questions;

// get the first group
const { group, items } = collection[0];

If there are no groups, only one entry will be returned. The group of this entry is 'default'.

TODO: Create a proper documentation with all of the types etc.

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago