Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #2361 - DataView new dataKey property #2362

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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