apeman-service-entry
Service for form entries.
Installation
$ npm install apeman-service-entry --save
Usage
#!/usr/bin/env node 'use strict' const ApEntryService = const createStore = const reducer = const co =
API
apeman-service-entry@2.0.0
Service for form entries.
- Functions
- ApEntryService Class
Functions
ApEntryService
create(args) -> Create the service instance
Param | Type | Description |
---|---|---|
args | * |
ApEntryService Class
Service for entry
new ApEntryService(store, options)
Constructor of ApEntryService class
Param | Type | Description |
---|---|---|
store | Object | Redux store |
options | Object | Optional settings |
Object
service.getEntry(entryName) -> Get entry values
Param | Type | Description |
---|---|---|
entryName | string | Name of entry. |
Object
service.getEntryError(entryName) -> Get entry errors
Param | Type | Description |
---|---|---|
entryName | string | Name of entry. |
Promise
service.updateEntry(entryName, values) -> Update an entry.
Param | Type | Description |
---|---|---|
entryName | string | Name of entry. |
values | Object | Values to set |
Promise
service.clearEntry(entryName) -> Clear an entry.
Param | Type | Description |
---|---|---|
entryName | string | Name of entry. |
Promise
service.clearEntryError(entryName) -> Clear errors for an entry.
Param | Type | Description |
---|---|---|
entryName | string | Name of entry. |
Promise
service.catchEntryError(entryName, err) -> Catch entry error
Param | Type | Description |
---|---|---|
entryName | string | Name of entry |
err | Object | Caught error |
License
This software is released under the MIT License.