Skip to content

Commit

Permalink
Merge pull request #2362 from tugcekucukoglu/dataview
Browse files Browse the repository at this point in the history
Fixed #2361 - DataView new dataKey property
  • Loading branch information
tugcekucukoglu authored Mar 28, 2022
2 parents 7d980a7 + ae843be commit 35370c1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions api-generator/components/dataview.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ const DataViewProps = [
type: "boolean",
default: "false",
description: "Defines if data is loaded and interacted with in lazy manner."
},
{
name: "dataKey",
type: "string",
default: "null",
description: "Name of the data that uniquely identifies the a record in the data."
}
];

Expand Down
4 changes: 4 additions & 0 deletions src/components/dataview/DataView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export interface DataViewProps {
* Defines if data is loaded and interacted with in lazy manner.
*/
lazy?: boolean | undefined;
/**
* Name of the data that uniquely identifies the a record in the data.
*/
dataKey: string | undefined;
}

export interface DataViewSlots {
Expand Down
5 changes: 4 additions & 1 deletion src/components/dataview/DataView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export default {
type: Boolean,
default: false
},
dataKey: null
dataKey: {
type: String,
default: null
}
},
data() {
return {
Expand Down
6 changes: 6 additions & 0 deletions src/views/dataview/DataViewDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ export default {
<td>boolean</td>
<td>false</td>
<td>Defines if data is loaded and interacted with in lazy manner.</td>
</tr>
<tr>
<td>dataKey</td>
<td>string</td>
<td>null</td>
<td>Name of the data that uniquely identifies the a record in the data.</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 35370c1

Please sign in to comment.