Skip to content

Provide a no-data slot for collections #560

@jtuchel

Description

@jtuchel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions