You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey @pm-designs initially I was a bit confused because the doc clearly mentions the syntax you need to use. But I've added a line to indicate that both properties are required to make it clear.
p0psicles
pushed a commit
to p0psicles/vue-good-table
that referenced
this issue
Jun 24, 2020
Issue Type (delete the irrelevant ones)
What browser?
Chrome. Latest
Expected Behavior
The Table have an inital order (initalSortBy). When i click on the default label the order switch to reverse order.
Actual Behavior
I can not click on thedefault label. I have to click on another label and then back to the first label to that i can change the order
`
import { VueGoodTable } from 'vue-good-table';
export default {
components: {
VueGoodTable,
},
props: {
headline: {
type: String,
default: '',
},
subline: {
type: String,
default: '',
},
action: {
type: String,
default: '',
},
linkTextToBack: {
type: String,
default: '',
},
eventIdToBack: {
type: String,
default: '',
},
linkTextToRelatedPage: {
type: String,
default: '',
},
eventIdToRelatedPage: {
type: String,
default: '',
},
searchLabel: {
type: String,
default: '',
},
searchPlaceholder: {
type: String,
default: '',
},
noResults: {
type: String,
default: '',
},
rows: {
type: Array,
default: () => ([]),
},
tableHeaderLabels: {
type: Array,
default: () => ([]),
},
},
data() {
return {
searchExp: '',
orderId: '',
eventId: '',
dateRangeStart: '',
dateRangeEnd: '',
search: {
enabled: true,
placeholder: 'Tabelle durchsuchen...',
},
pagination: {
enabled: true,
perPage: 5,
perPageDropdown: [5, 10, 25, 50],
dropdownAllowAll: false,
rowsPerPageLabel: 'Anzahl der Einträge:',
ofLabel: 'von',
pageLabel: 'Seite',
allLabel: 'Alle',
},
columns: [
{
label: this.tableHeaderLabels[0],
field: 'location',
type: 'string',
},
{
label: this.tableHeaderLabels[1],
field: 'dateOfDeliveryStart',
type: 'date',
dateInputFormat: 'yyyy-mm-dd',
dateOutputFormat: 'dd.mm.yyyy',
},
{
label: this.tableHeaderLabels[2],
field: 'dateOfDeliveryEnd',
type: 'date',
dateInputFormat: 'yyyy-mm-dd',
dateOutputFormat: 'dd.mm.yyyy',
},
{
label: this.tableHeaderLabels[3],
field: 'product',
type: 'string',
},
{
label: this.tableHeaderLabels[4],
field: 'phone',
type: 'string',
},
{
label: this.tableHeaderLabels[5],
field: 'orderId',
type: 'number',
href: '#',
},
],
};
},
computed: {
resetManager() {
return this.searchExp;
},
},
methods: {
// BE: post actions are required for these links
goToPage(event, order) {
this.eventId = event;
this.orderId = order;
this.$nextTick(() => {
document.getElementById('order-history').submit();
});
},
onSortChange() {
console.log('sort 123');
},
clearFilter(filter) {
// if param not exists or param includes key
if (!filter || filter.includes('search')) {
this.searchExp = '';
}
},
},
};
`
The text was updated successfully, but these errors were encountered: