codoozer-flow
v0.1.24
Published
Codoozer flow reader library
Maintainers
Readme
Codoozer Flow
Getting started
- Go to codoozer.com and create a flow project.
- Create all your flows and the steps of each flow.
- Publish your flow project to get the url you need to init your codoozer-flow lib.
- Import
codoozer-flowin your code with npm or cdn. - 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 aStringthat represents the id of the flow you want to start.newLayer: must be aBoolean. Default:true.
goTo(stepId, { newLayer })
stepId: must be aStringthat represents the id of the step you want to go.newLayer: must be aBoolean. Default:false.
