0.0.25-b1 • Published 7 years ago

fh-wfm-appform v0.0.25-b1

Weekly downloads
44
License
MIT
Repository
github
Last release
7 years ago

FeedHenry RainCatcher AppForms

A RainCatcher AppForm module for FeedHenry RainCatcher. This module provides :

  • A set of AngularJS directives
  • An AngularJS Service to interact with AppForms.
  • A backend Service to interact with AppForms

Client-side usage (via broswerify)

Setup

This module is packaged in a CommonJS format, exporting the name of the Angular namespace. The module can be included in an angular.js as follows:

angular.module('app', [
, require('fh-wfm-appform')
...
])

Integration

Angular Services

This module provides a injectable file service : appformClient

This client offers these functions :

  • init
  • list
  • getForm
  • getSubmissionLocal
  • getSubmission
  • getSubmissions
  • getFields
  • createSubmission
  • submitSubmission
  • uploadSubmission
  • composeSubmissionResult
  • syncStepResult
  • watchSubmissionModel

Example of getForm usage :

resolve: {
    form: function($stateParams, appformClient) {
      return appformClient.getForm($stateParams.formId);
    }
  }

For a more complete example around files operations, please check the demo portal app.

Directives
NameAttributes
appformSubmissionsubmissionLocalId, submissionId, submission
appformform, formId
appformFieldfield, model
appformFieldLocationfield, model
appformFieldPhotofield, model
appformFieldNumberfield, model
appformFieldDatetimefield, model
appformFieldDatefield, model
appformFieldTimefield, model

Usage in an express backend

The server-side component of this RainCatcher module exports a function that takes express and mediator instances as parameters, as in:

var express = require('express')
  , mbaasApi = require('fh-mbaas-api')
  , app = express()
  , mbaasExpress = mbaasApi.mbaasExpress()
  , mediator = require('fh-wfm-mediator/lib/mediator')
  ;

// configure the express app
...

// setup the wfm user router
require('fh-wfm-appform/lib/server')(mbaasApi);

Forms events

This module will subscribe to the the submissionEventListener and react on these events :

  • submissionStarted
  • submissionComplete
0.0.25-b1

7 years ago

0.1.0

7 years ago

0.1.0-0

7 years ago

0.0.25

7 years ago

0.0.24

7 years ago

0.0.23

7 years ago

0.0.22

7 years ago

0.0.21-alpha.1

7 years ago

0.0.21

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.18-alpha.1

7 years ago

0.0.19-alpha.1

7 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago