1.0.0 • Published 6 years ago

silverbulletclient v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

silverBulletClient

Travis npm package Coveralls

React/antd data aware components.
Highly opionated and based on rest and normalization standards.

SBSelect

Renders data aware antd Select

Properties:

endPoint - api end point, usually the table name. (required)
value - initial value of component
keyValue - defaults to "id"
displayValue - defaults to "name"

SBGrid

Renders data aware, antd table

Properties

endPoint: api end point, usually the table name. (required)
columns: passed to antd table columns (required)
record: used to filter table data and initialization object for add
delete: boolean. show delete button defaults to true.
update: boolean. show update button. defaults to true.

SBAddButton

Renders button that triggers modal containing form to add record

Properties

endPoint: api end point, usually the table name. (required)
columns: columns to collect on form.
record: initialization object.
reload: function to reload data

SBEditButton

Renders button that triggers modal containing form to update record

Properties

endPoint: api end point, usually the table name. (required)
columns: columns to collect on form.
reload: function to reload data

SBDeleteButton

Renders button that prompts user with modal to confirm deletion.

Properties

endPoint: api end point, usually the table name. (required)
deleteId: record of id to delete

SBGridModal

Wraps SBGrid with modal.