|
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
dist | %!s(int64=3) %!d(string=hai) anos | |
example | %!s(int64=3) %!d(string=hai) anos | |
src | %!s(int64=3) %!d(string=hai) anos | |
.editorconfig | %!s(int64=4) %!d(string=hai) anos | |
.eslintignore | %!s(int64=4) %!d(string=hai) anos | |
.eslintrc | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
.prettierrc | %!s(int64=4) %!d(string=hai) anos | |
.travis.yml | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
package-lock.json | %!s(int64=3) %!d(string=hai) anos | |
package.json | %!s(int64=3) %!d(string=hai) anos |
Mokkon's reactjs components
Props
Name | Type | Default | Description |
---|---|---|---|
fields | Array of field object | Form fields | |
data | object | Form data | |
actions | Array of action object |
Field object
Name | Type | Default | Description |
---|---|---|---|
field_name | string | Field name | |
label | string | Field label | |
type | string | Field type | |
options | Array of selection object | Data objects for dropdown or autocomplete | |
can_create | boolean | To handle adding new object from dropdown or autocomplete | |
readonly | boolean | To handle for not editable form | |
option_label_field | string | Field name to get label of option in dropdown |
Action object
Name | Type | Default | Description |
---|---|---|---|
label | string | Action label | |
icon | icon | Action icon | |
callback | function | Action ( edit, delete, etc..) | |
status | string | Form data status |
Data