ButtonColumnComponent

This component allows you a button inside the column of the table

Example

ButtonColumnComponent

<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: ButtonColumnComponent,
                props: {
                  icon: "monitor",
                  tooltip: { label: this.$t("details"), type: "is-white" },
                  content: "streamTypeStr",
                },
                events: {
                  confirm: (v) => this.showOfuscatedData(v),
                },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-false"0"
icon-Stringfalse"monitor"
isRounded-Booleanfalsetrue
buttonText-Stringfalse""
buttonClass-String / Objectfalse"table-buttons"
tooltip-String / Objectfalse""

Events

Event NameDescriptionParameters
confirm--