Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@digifi-los/form-creator
Advanced tools
Form Creator is a class that helps with creating a Responsive Form manifest. By using the given class methods, you can easily add formElements (as well as other fields) to the Responsive Form.
Options Properties | Type | Required | Example |
---|---|---|---|
gridProps | Object | N | { className: 'test' } |
validations | Object | N | { full_name: [ { constraint: 'presence', message: '^Required', } ] } |
< Any Property Name > | Object | Y | { type: 'text', name: 'full_name', placeholder: 'Full Name', hasValidations: true, } |
instance.addFormElements({
gridProps: {
key: 'randomKey()',
},
validations: {
'address_street': [{
constraint: 'presence',
message: '^Your home address is required.',
}, {
constraint: 'length',
maximum: 100,
}]
},
group1: {
type: 'text',
label: 'Home Address',
name: 'address_street',
placeholder: 'Street Address',
hasValidations: true,
},
});
Parameters | Type | Required | Example |
---|---|---|---|
property | String | Y | 'props.ref' |
value | Any | Y | true |
instance.addFields('props.ref', true); // sets unflattened props.ref to true on the form
Options Properties | Type | Required | Example |
---|---|---|---|
url | String | Y | '/application/form_submission' |
method | String | Y | 'post' |
successCallback | String | N | 'func:this.props.loginUser' |
errorCallback | String | N | 'func:this.props.reduxRouter.push' |
instance.addOnSubmit({
url: '/application/form_submission',
method: 'post',
successCallback: 'func:this.props.loginUser',
errorCallback: 'func:this.props.reduxRouter.push',
});
instance.getForm();
To install
$ npm install @digifi-los/form-creator --save
To uninstall
$ npm uninstall @digifi-los/form-creator --save
Make sure you have grunt installed
$ npm install -g grunt-cli jsdoc-to-markdown
For generating markdown documentation
$ grunt doc
$ jsdoc2md lib/*.js index.js > doc/api.md
Make sure you have grunt installed
Run the following command to test and return coverage
$ grunt test
FAQs
DigiFi Form Creator
The npm package @digifi-los/form-creator receives a total of 7 weekly downloads. As such, @digifi-los/form-creator popularity was classified as not popular.
We found that @digifi-los/form-creator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.