DateColumnComponent

This component allows you to date column

Example

DateColumnComponent

<template>
  <div>
    <section>
      <server-table-component
        data-url="/services"
        v-bind="servicesDefinition"
      />
    </section>
  </div>
</template>;

export default {
  name: "App",
  data() {
    return {
      servicesDefinition: {
        vtable: {
          headers: [
            {
              text: "Service Id",
              value: "service_Id",
              align: "left",
              render: {
                type: DateColumnComponent,
                props: { serverFormat: this.$store.state.SERVER_DATE_FORMAT },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-Date / Stringfalse-
serverFormat-Stringfalse"M/DD/YYYY hh:mm:ss A"
displayFormat-Stringfalse"DD/MM/YYYY hh:mm:ss A"
fallbackValueValue fallbackStringfalse"----"