-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set a default row on b-table when data is empty #154
Comments
Does it have to be a row or do you want to display just a message that there's nothing? |
The ideal solution will be to display a single message in a row and keep the Using a slot on a Example: <b-table
:data="myArray"
:paginated="true"
:per-page="25">
<template scope="props">
<b-table-column field="test" label="Test">
{{props.row.test}}
</b-table-column>
<b-table-column field="value" label="Value">
{{props.row.value}}
</b-table-column>
<td slot="empty" colspan="2">
Sorry, there is nothing to display here.
</td>
</template>
</b-table> |
Yep I thought about that, it's nice to have, going to add. |
Am wondering if this functionality was added? |
@coderabsolute Yes, you have to use |
@jtommy I thought |
No it's no possible at the moment. |
Is there any workaround you can think of to make my |
What do you mean with columns? Header? |
Ah sorry, I meant Header (not columns).. |
There is already an issue a about it. Please follow it and we'll think how and when add it, if possible. |
…programmatically opened Modal (buefy#153) (buefy#154) * fix(lib): useI18n did not work in Modal - Quick fixes the issue that `useI18n` did not work in a setup script within the context of a programmatically opened `Modal`. `copyAppContext` helper function also copies the private field `__VUE_I18N_SYMBOL__` used by `vue-i18n`. However, we will face similar problems unless we generalize the problem and fix it. issue ntohq#153
Overview of the problem
Buefy version: [0.4.4]
Vuejs version: [2.3.4]
OS/Browser: Windows 10/Chrome 59/Firefox 54
Description
Hi, i would like to add a default row in a
<b-table>
when my array (data) is empty.Is there a correct way to do it without changing the source code ?
Steps to reproduce
Just make a simple
<b-table>
and use an empty array asdata
source.Example with a simple table:
The text was updated successfully, but these errors were encountered: