ContentButtonColumnComponent

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

Example

ContentButtonColumnComponent

<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: ContentButtonColumnComponent,
                props: {
                  content: "publicationCount",
                  textLenght: 15,
                  button: {
                    isRounded: true,
                    icon: "monitor",
                    type: "is-white",
                    tooltip: {
                      label: this.$t("publicationsExistCount"),
                      type: "is-white",
                    },
                  },
                },
                events: {
                  "button-clicked": (v) => this.publicationsOpen(v),
                },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-Objectfalse-
textLenght-Numberfalseundefined
buttonButton configurationObjectfalsedefault() {
return {
isRounded: true,
type: "is-primary",
icon: "monitor",
size: "is-small",
disabled: false,
tooltip: {
  label: "Test label",
  position: "is-left",
  type: "is-primary"
}

}; }| |content|-|String|false|undefined| |comparator|-|String|false|undefined| |rowArrayValue|Value row array|String|false|undefined| |rowValue|Value row|String|false|undefined|

Events

Event NameDescriptionParameters
button-clicked--