Skip to content

emptyMessage prop for DataTable needs to be better documented #8189

@iamvanja

Description

@iamvanja
"@primeuix/themes": "1.2.3",
"primevue": "4.3.9"

I was under the impression that the following would work

<DataTable :value="[]" empty-message="Nothing found.">
  <Column field="name" header="Name"></Column>
</DataTable>

But it seems that pt object is required for this (see Stackblitz).

I am aware of a slot, but that also requires implementing the styling of something so basic as an empty state.

Shouldn't there be a way to pass a simple string and let the DataTable handle the internals?

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