BoolToTextColumnComponent

This component allows you to convert from type bool to text

Example

BoolToTextColumnComponent

<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: BoolToTextColumnComponent,
                props: {
                  trueText: this.$t("trueText"),
                  falseText: this.$t("falseText"),
                },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-Booleanfalse-
trueText-Stringfalse"yes"
falseText-Stringfalse"no"