We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
When i set the prop align on a tbody templated element the class mdc-data-table__cell--right is not present
mdc-data-table__cell--right
Ex on the slot actions:
actions
<ui-table v-model="selectedRows" fullwidth :data="data" :thead="thead" :tbody="tbody" :tfoot="tfoot" row-checkbox selected-key="id" > <template #th-dessert> Dessert <ui-icon v-tooltip="'100g serving'" aria-describedby="th-cell-1"> error_outline </ui-icon> </template> <template #dessert="{ data }"> <div class="dessert">{{ data.dessert }}</div> </template> <template #actions="{ data }"> <ui-icon @click="show(data)">description</ui-icon> <ui-icon @click="show(data)">edit</ui-icon> <ui-icon @click="show(data)">delete</ui-icon> </template> <ui-pagination v-model="page" :total="total" show-total @change="onPage" ></ui-pagination> </ui-table>
export default { data() { return { data: [], thead: [ { value: 'ID', sort: 'asc', columnId: 'id' }, { slot: 'th-dessert', class: 'gg', sort: 'none', columnId: 'dessert' }, 'Calories', 'Fat (g)', 'Carbs (g)', 'Protein (g)', 'Actions', ], tbody: [ 'id', { slot: 'dessert' }, { field: 'calories', numeric: true, class: 'test' }, { field: 'fat', fn: data => { return data.fat.toFixed(1); } }, 'carbs', { field: 'protein', class: data => { return data.protein > 5 ? 'red' : 'green'; } }, { slot: 'actions', align:'right' } ], tfoot: [ { field: 'id', fnName: 'count' }, null, { field: 'calories', fnName: 'sum', align: 'right', class: 'test' }, { field: 'fat', fnName: 'avg' }, { field: 'carbs', fnName: 'max' }, { field: 'protein', fnName: 'min' } ], selectedRows: [1, 2, 4], page: 1, total: 12 }; }, created() { let { data } = await this.$http.get('/api/getData'); this.data = data; }, methods: { show(data) { console.log(data); }, onPage(page) { // your code } } };
The text was updated successfully, but these errors were encountered:
fix: table cell properies bug (#48)
f061111
Hi @jfrag , It has been fixed now~
Thanks a lot :)
Sorry, something went wrong.
Hi @elf-mouse
Can you push the bugfix on 9.x version please ?
Thank you for youre hard work !
No problem.
I'm going to fix the UI bugs of the new version first from this month!
No branches or pull requests
Hi,
When i set the prop align on a tbody templated element the class
mdc-data-table__cell--right
is not presentEx on the slot
actions
:The text was updated successfully, but these errors were encountered: