devextreme-vue icon indicating copy to clipboard operation
devextreme-vue copied to clipboard

Provide a no-data slot for collections

Open jtuchel opened this issue 4 years ago • 0 comments

Feature request

Package versions you currently use:

devexteme version: 21.2.5
devextreme-vue version: 21.2.5

Description: The DxList component provides a noDataText prop but no slot. It would be nice to customize the content when no data is present.

Preferred Solution:

This works

<DxList :data-source="items" no-data-text="No data" />

it would be nice if this would work too

<template>
  <DxList :data-source="items">
    <template #no-data>
      Custom slot if no data is present
    </template>
  </DxList>
</template>

Currently it uses a default implementation and renders

image

jtuchel avatar Jan 30 '22 20:01 jtuchel