Skip to content

Display fixed row in b-table #682

@ccamarat

Description

@ccamarat

Suppose you're using <b-table> to build a directory browser. The first row is always "Up to parent". If the directory is empty, you want to display "No files" or something.
The "up to parent" problem could be solved (albeit clunkily) by adding a dummy node to the items collection, but doing so prevents the collection from ever being empty, so the empty slot will never appear. A more ideal solution would be to be able to inject a fixed "template-row" of some kind, but I'm not seeing anything like this in the docs. Any thoughts on how one might tackle this problem?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions