-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Milestone
Description
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?