@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.
- package/README.md +6 -11
- 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={
|
89
|
-
title="
|
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={
|
137
|
-
|
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
|
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
|
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
|
|