Skip to content

DateRangepicker not showing #147

Description

@simocheccoli
  • Vue.js version: 2.6.11
  • consumed using: (webpack)
  • FULL error message (including stack trace): 0 errors
  • relevant code:

App.vue

  import $ from "jquery";
  window.$ = $;

MyComponent.vue

<v-server-table :columns="columns" :options="options" :theme="theme" id="dataTable"></v-server-table>

  import moment from "moment";
  import daterangepicker from "daterangepicker";

  window.moment = moment;
  window.daterangepicker = daterangepicker;

  Vue.use(ServerTable);

  export default {
    name: "Actions",
    props: [
      'perPage'
    ],
    components: {
      ServerTable,
      Event,
      Loading
    },
    data() {
      return {
        isLoading: false,
        columns: ['applicationUuid', 'name', 'command', 'status', 'user', 'initAt', 'endAt'],
        options: {
          sortable: ['applicationUuid', 'name', 'command', 'status', 'user', 'initAt', 'endAt'],
          sortIcon: {base: 'fa', up: 'fa-sort-asc', down: 'fa-sort-desc', is: 'fa-sort'},
          filterByColumn: true,
          filterable: ['name', 'command', 'status', 'user', 'initAt', 'endAt'],
          dateColumns: ['initAt'],
          headings: {
            name: this.$t('message.name'),
            command: this.$t('message.command'),
            status: this.$t('message.status'),
            userDisplayName: this.$t('message.name'),
            initAt: this.$t('message.started'),
            endAt: this.$t('message.ended'),
          },
          perPageValues:  [this.perPage, 10, 25, 50, 100],
          perPage: this.perPage,
          pagination: {
            chunk: 5,
            edge: true,
            nav: 'scroll'
          },
          requestFunction: (data) => {
           //Call via axios
          }
        },
        useVuex: false,
        theme: 'bootstrap4',
        template: 'default'
      }
    },
    mounted() {
    }
  }
  • steps for reproducing the issue:
    No filter is showing for initAt : just a placeholder label is showing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions