@scheels-softdev/kendoreact-generics 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -85,8 +85,8 @@ data={myDataArray}
85
85
  selectedData={mySelectedDataArray}
86
86
  textFields={["firstName", "lastName"]}
87
87
  separator=" - "
88
- selectEvent={setSelectedVend}
89
- title="Vendor(s)"
88
+ selectEvent={setSelectedEmployee}
89
+ title="Selected Employees"
90
90
  limit={10}
91
91
  />
92
92
 
@@ -133,13 +133,8 @@ limit={10}
133
133
  ### Usage
134
134
 
135
135
  <FilterCellDropdown
136
- data={myDataArray}
137
- selectedData={mySelectedDataArray}
138
- textFields={["firstName", "lastName"]}
139
- separator=" - "
140
- selectEvent={setSelectedVend}
141
- title="Vendor(s)"
142
- limit={10}
136
+ data={myStatusArray}
137
+ textFields={["StatusName"]}
143
138
  />
144
139
 
145
140
  ### Required props
@@ -155,14 +150,14 @@ limit={10}
155
150
  #### textFields
156
151
 
157
152
  - This is defined as (keyof T)[].
158
- - For example, if my dropdown is fed a list of employee objects with a firstName, lastName, and id key, I would pass ["firstName","lastName"] to see "John Williams", or ["firstName","lastName","id"] to see "John Doe 19382032141"
153
+ - For example, if my dropdown is fed a list of employee Statuses, I could feed it a "StatusName" field (assuming my Status objects have that key) and it could display something like "Active", "Terminated", or "On Leave"
159
154
 
160
155
  ### Optional props
161
156
 
162
157
  #### separator
163
158
 
164
159
  - This defines what your text fields are separated by. by default, it is assumed you only want a space between them. Use this prop if you want to change this
165
- - For example, if we want our employee's names separated by a comma, we would pass ", " here
160
+ - For example, if some of our associates only know the status IDs for Active, Terminated, or On Leave and we want to display them side by side, we might want to add a "dash" seporator. to do this we would pass " - " here
166
161
 
167
162
  ---
168
163
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scheels-softdev/kendoreact-generics",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",