diff --git a/components/lib/dataview/DataView.d.ts b/components/lib/dataview/DataView.d.ts index 1b79e4474..64afb3291 100755 --- a/components/lib/dataview/DataView.d.ts +++ b/components/lib/dataview/DataView.d.ts @@ -81,14 +81,6 @@ export interface DataViewPassThroughOptions { * Used to pass attributes to the content's DOM element. */ content?: DataViewPassThroughOptionType; - /** - * Used to pass attributes to the grid's DOM element. - */ - grid?: DataViewPassThroughOptionType; - /** - * Used to pass attributes to the column's DOM element. - */ - column?: DataViewPassThroughOptionType; /** * Used to pass attributes to the empty message's DOM element. */ @@ -253,8 +245,14 @@ export interface DataViewSlots { footer(): VNode[]; /** * Custom empty template. + * @param {Object} scope - empty slot's params. */ - empty(): VNode[]; + empty(scope: { + /** + * Layout of the items. + */ + layout?: string | undefined; + }): VNode[]; /** * Custom paginator start template. */ @@ -271,11 +269,7 @@ export interface DataViewSlots { /** * Value of the component */ - data: any; - /** - * Index of the grid - */ - index: number; + items: any; }): VNode[]; /** * Custom list template. @@ -285,11 +279,7 @@ export interface DataViewSlots { /** * Value of the component */ - data: any; - /** - * Index of the grid - */ - index: number; + items: any; }): VNode[]; } diff --git a/components/lib/dataview/DataView.vue b/components/lib/dataview/DataView.vue index b1e14fc3e..3d61d5b2f 100755 --- a/components/lib/dataview/DataView.vue +++ b/components/lib/dataview/DataView.vue @@ -26,16 +26,14 @@
- DataView requires a value to display along with a list slot that receives an object in the collection to return content. The root element should have the PrimeFlex Grid classes e.g. col-12 to define how items are displayed. -
+DataView requires a value to display along with a list slot that receives an object in the collection to return content.
DataView supports list and grid display modes defined with the layout property. The helper DataViewLayoutOptions component can be used to switch between the modes however this component is optional and you may - use your own UI to switch modes as well. As in list layout, the grid layout also requires PrimeFlex Grid classes to define how the grid is displayed per screen sizes. + use your own UI to switch modes as well.
DataView depends on PrimeFlex Grid functionality so it needs to be installed and imported.
-