
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-generic
Advanced tools
Use it for easy field with edit mode for String, Number, Array , Date , Telephone , File UpLoad , Pointer , Array of Pointers and more, and for Fast Table/Form With edit mode InLine/PopUp
With react-generic you can print quickly a Field, Table, Form
Some Of The Fields ScreenShot:

Generic Table ScreenShot:
Generic Form ScreenShot:
Use Field for show Input text with edit mode for different type of fields: String, Number, Object, Date, Pointer, and Array of Pointers
import {Field} from 'components';
<Field
row={row} //All Row Data
value={value}
type={field.type}
name={field.name}
handleSubmit={handleSubmitFromField}
config={this.getFieldConfig(fieldsConfiguration,field.name)}
defaultConfiguration={defaultConfiguration}
handlePointerClick={handlePointerClick}
| Props | Type | Default value | |
|---|---|---|---|
| Row | Object | ||
| Value | String ,Array, Pointer, Boolean ,Number | String | |
| Name | String | ||
| handleSubmit | function | On Save button click this function run with object of data: | |
| {name: 'fieldName', | |||
| objectId: 'objectId', | |||
| Value: 'the new value', | |||
| oldValue: 'oldValue ', | |||
| row :'Row Data' | |||
| } | |||
| config | object | The options for each type are different, look at Field Configuration by type , this is the place to set specific option for the field | |
| defaultConfiguration | object | Use this for config your all field by type | |
| handlePointerClick | function | When user click on the pointer button this function run with pointer value | |
| getPointerOptions | function | When user open the pointer drop down this function need to return call back like this: | |
| return callback(null, { | |||
| options: [ | |||
| { value:{__type :"Pointer",className: dataClassName,objectId: obj.objectId} | |||
| label: 'the text that show in the drop box' | |||
| } | |||
| ], | |||
| complete: true | |||
| }); | |||
| Field(the schema object of this field, for pointer is require, from this object the pointer take the 'targetClass' value for the pointers options ) | object | {name:"pointerfieldsName", | |
| targetClass:"Categories", | |||
| type:"Pointer", | |||
| } | |||
*You can use Field and Set The Type or, Use directly with the specific type by import Specific Type: import {DateField,StringField,NumberField,TelephoneField,ArrayField,FileField,PointerField,SpecialPointer} from 'react-generic'

YOU CAN LOOK/COPY CONFIG OPTIONS FROM THIS LINK:
a link
Set DefaultConfiguration for GenericTable/GenericForm
YOU CAN LOOK/COPY CONFIG OPTIONS FROM THIS LINK:
a link
Pass Data props + Schema Props and get beautiful react-table with all field in EditMode by One Click
import {GenericTable} from 'react-generic';
<GenericTable
data ={this.data}
dataClassName={dataClassName}
fields={this.schemaFields}
countResults={countResults}
handleSubmitFromField={::this.handleSubmitFromField}
getPointerOptions={::this.getPointerOptions}
handlePointerClick={::this.handlePointerClick}
fieldsConfiguration={this.fieldsConfiguration}
defaultConfiguration={this.defaultConfiguration}
defaultPageSize={${countResults < 20 ? countResults : 20}}
loading={false}
onRowSelectd={::this.onRowSelectd}
/ >
Pass Data props + Schema Props and get beautiful Form with all field in EditMode by One Click
import {GenericForm } from 'react-generic';
<GenericForm
data ={this.data}
dataClassName={dataClassName}
fields={this.schemaFields}
handleSubmitFromField={::this.handleSubmitFromField}
getPointerOptions={::this.getPointerOptions}
handlePointerClick={::this.handlePointerClick}
fieldsConfiguration={this.fieldsConfiguration}
defaultConfiguration={this.defaultConfiguration}
loading={false}
/ >
FAQs
Use it for easy field with edit mode for String, Number, Array , Date , Telephone , File UpLoad , Pointer , Array of Pointers and more, and for Fast Table/Form With edit mode InLine/PopUp
The npm package react-generic receives a total of 1 weekly downloads. As such, react-generic popularity was classified as not popular.
We found that react-generic 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.