0.1.24 • Published 4 years ago

codoozer-flow v0.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Codoozer Flow

Getting started

  1. Go to codoozer.com and create a flow project.
  2. Create all your flows and the steps of each flow.
  3. Publish your flow project to get the url you need to init your codoozer-flow lib.
  4. Import codoozer-flow in your code with npm or cdn.
  5. Start a flow whenever you want with the id of the flow project.

Install

npm

import CodoozerFlow from 'codoozer-flow';
import 'codoozer-flow/build/index.css' // If you import a css file in your library
...

cdn

<link href="https://unpkg.com/codoozer-flow/build/index.css" rel="stylesheet">
<script src="https://unpkg.com/codoozer-flow/build/index.js"></script>
...

Usage

npm

let flow = new CodoozerFlow({ hash: 'HASH' });
...

cdn

let CodoozerFlow = window.CodoozerFlow.default;
let flow = new CodoozerFlow({ hash: 'HASH' });
...

API

start(flowId, { newLayer })

  • flowId: must be a String that represents the id of the flow you want to start.
  • newLayer: must be a Boolean. Default: true.

goTo(stepId, { newLayer })

  • stepId: must be a String that represents the id of the step you want to go.
  • newLayer: must be a Boolean. Default: false.
0.1.24

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.16

4 years ago

0.1.8

4 years ago

0.1.17

4 years ago

0.1.7

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago