ColorPicker

This component allows you to select a color .

Example

ColorPicker

<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: ColorPicker,
                props: {
                  isInColumn: true,
                  locale: locale,
                  position: "is-bottom-left",
                },
                events: {
                  input: this.saveColor,
                },
              },
              sortable: true,
              class: "white-space-nowrap",
            },
          ],
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
value-Stringfalsenull
primaryColorColor primaryStringfalseundefined
secondaryColorColor secondaryStringfalseundefined
horizontal-Booleanfalsetrue
labelInside-Booleanfalsefalse
labelOnBorder-Booleanfalsefalse
mobileModal-Booleanfalsetrue
maxHeight-Numberfalse1000
isScrollable-Booleanfalsetrue
isInColumn-Booleanfalsefalse
position-Stringfalse"is-bottom-right"
localeLocale string {en, es ...} for display language on componentStringfalse"en"

Events

Event NameDescriptionParameters
input--