Merge pull request #2362 from tugcekucukoglu/dataview

Fixed #2361 - DataView new dataKey property
pull/2364/head
Tuğçe Küçükoğlu 2022-03-28 11:37:07 +03:00 committed by GitHub
commit 35370c179b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 1 deletions

View File

@ -88,6 +88,12 @@ const DataViewProps = [
type: "boolean", type: "boolean",
default: "false", default: "false",
description: "Defines if data is loaded and interacted with in lazy manner." 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. * Defines if data is loaded and interacted with in lazy manner.
*/ */
lazy?: boolean | undefined; lazy?: boolean | undefined;
/**
* Name of the data that uniquely identifies the a record in the data.
*/
dataKey: string | undefined;
} }
export interface DataViewSlots { export interface DataViewSlots {

View File

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

View File

@ -334,6 +334,12 @@ export default {
<td>boolean</td> <td>boolean</td>
<td>false</td> <td>false</td>
<td>Defines if data is loaded and interacted with in lazy manner.</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> </tr>
</tbody> </tbody>
</table> </table>