InputMediaVisualizer

This component allows you to create a input media visualizer

Example

InputMediaVisualizer

export default {
  name: "App",
  data() {
    return {
      form: {
        servicesDefinition: {
          type: InputMediaVisualizer,
          default: null,
          value: null,
          "field-wrapper": { class: "is-12", style: "display: none" },
          "field-input": {
            label: "label",
            mediaMimeType: "image/*",
            showExpandIcon: true,
            basePath: this.$store.state.APP_BASE_URL,
          },
        },
      },
    };
  },
};

Props

NameDescriptionTypeRequiredDefault
horizontal-Booleanfalsetrue
value-falsenull
labelInside-Booleanfalsefalse
labelOnBorder-Booleanfalsefalse
showExpandIcon-Booleanfalsefalse
iconSize-Stringfalsenull
iconCustomClass-Stringfalse""
mediaMimeType-MimeType / Stringfalsenull
localeLocale string {en, es ...} for display language on componentStringfalse"en"
basePathLet basePath empty and directly try to load image from value propStringfalse""