Fixed #2361 - DataView new dataKey property

pull/2362/head
Tuğçe Küçükoğlu 2022-03-28 11:36:46 +03:00
parent 7d980a74f2
commit ae843be593
4 changed files with 20 additions and 1 deletions

View File

@ -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."
}
];

View File

@ -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 {

View File

@ -107,7 +107,10 @@ export default {
type: Boolean,
default: false
},
dataKey: null
dataKey: {
type: String,
default: null
}
},
data() {
return {

View File

@ -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>