FileSizeColumnComponent

This component allows you to file size column

Example

FileSizeColumnComponent

<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: FileSizeColumnComponent,
                props: {
                  content: this.$t("fileSize"),
                  locale: this.$i18n.locale,
                  textLenght: 15,
                  tooltipPosition: "is-top",
                },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-Number / Stringfalse-
fallbackValueValue fallbackStringfalse"----"
textLenght-Numberfalse50
roundedButtons-Booleanfalsetrue
modalTitleClass-Stringfalse"is-size-5 has-text-primary has-text-centered"
modalWidth-Numberfalse400
content-Stringfalse""
appendToBodyAppend content to body (prevents event bubbling)Booleanfalsefalse
tooltipPosition-Stringfalse"is-top"
tooltipType-Stringfalse"is-white"
localeLocale string {en, es ...} for display language on componentStringfalse"en"