| Name | Type | Default |
|
backgroundColor
# |
String
|
white
|
Sets the background color of the QR Code element.
<template>
<JqxQRcode ref="myQRcode"
:backgroundColor="'yellow'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
displayLabel
# |
Boolean
|
false
|
Sets whether the QR Code label is visible.
<template>
<JqxQRcode ref="myQRcode"
:displayLabel="true"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
embedImage
# |
String
|
|
Sets an embedded image.
<template>
<JqxQRcode ref="myQRcode"
:embedImage="'L'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
errorLevel
# |
String
|
H
|
Sets the error correction level.
<template>
<JqxQRcode ref="myQRcode"
:errorLevel="'L'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
imageHeight
# |
Number
|
15
|
Sets the height of the embedded image.
<template>
<JqxQRcode ref="myQRcode"
:imageHeight="30"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
imageWidth
# |
Number
|
15
|
Sets the width of the embedded image.
<template>
<JqxQRcode ref="myQRcode"
:imageWidth="30"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelColor
# |
String
|
black
|
Sets the color of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelColor="'red'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelFont
# |
String
|
monospace
|
Sets the font family of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelFont="'monospace'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelFontSize
# |
Number
|
14
|
Sets the font size of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelFontSize="16"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelMarginBottom
# |
Number
|
5
|
Sets the bottom margin of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelMarginBottom="16"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelMarginTop
# |
Number
|
5
|
Sets the top margin of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelMarginTop="16"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
labelPosition
# |
String
|
bottom
|
Sets the position of the QR Code label.
<template>
<JqxQRcode ref="myQRcode"
:labelPosition="'bottom'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
lineColor
# |
String
|
black
|
Sets the color of the QR Code lines.
<template>
<JqxQRcode ref="myQRcode"
:lineColor="'black'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
squareWidth
# |
Number
|
7
|
Sets the width of the QR Code square.
<template>
<JqxQRcode ref="myQRcode"
:squareWidth="9"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
renderAs
# |
String
|
svg
|
Sets the rendering mode of the QR Code.
<template>
<JqxQRcode ref="myQRcode"
:renderAs="'svg'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
value
# |
String
|
|
Sets or gets the value of the QR Code.
<template>
<JqxQRcode ref="myQRcode"
:value="'example'"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
</script>
|
|
|
|
invalid
# |
Event
|
|
This event is triggered when the value of the QR Code is invalid.
Code examples #
Bind to the invalid event of jqxQRcode.
<template>
<JqxQRcode ref="myQRcode" @invalid="onInvalid($event)"
/>
</template>
<script setup>
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
function onInvalid(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
export
# |
format, fileName
|
None
|
Exports the QR Code.
<template>
<JqxQRcode ref="myQRcode"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
const myQRcode = ref(null);
onMounted(() => {
myQRcode.value.export();
});
</script>
|
|
getDataURL
# |
format
|
String
|
Gets the base64 string of the QR Code
<template>
<JqxQRcode ref="myQRcode"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
const myQRcode = ref(null);
onMounted(() => {
const value = myQRcode.value.getDataURL();
});
</script>
|
|
getDataURLAsync
# |
format
|
Object
|
Gets the base64 string of the QR Code
<template>
<JqxQRcode ref="myQRcode"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
const myQRcode = ref(null);
onMounted(() => {
const value = myQRcode.value.getDataURLAsync();
});
</script>
|
|
isValid
# |
|
Boolean
|
Gets the validity of the QR Code
<template>
<JqxQRcode ref="myQRcode"
/>
</template>
<script setup>
import { onMounted, ref } from "vue";
import JqxQRcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxqrcode.vue';
const myQRcode = ref(null);
onMounted(() => {
const value = myQRcode.value.isValid();
});
</script>
|