Skip to content
Snippets Groups Projects
Commit fdb41409 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Add html-support for RowEntry labels

parent 88195e3e
No related branches found
No related tags found
No related merge requests found
<template> <template>
<div class="row gx-0" :class="classes"> <div class="row gx-0" :class="classes">
<label class="col-sm-2 col-form-label fw-bold text-end px-2" for="name"> <label class="col-sm-2 col-form-label fw-bold text-end px-2" for="name">
{{ label }} <span v-if="htmlLabel" v-html="label"></span>
<template v-else>{{ label }}</template>
</label> </label>
<div class="col-sm-10 col-form-label value px-2"> <div class="col-sm-10 col-form-label value px-2">
<slot /> <slot />
...@@ -14,6 +15,7 @@ export default { ...@@ -14,6 +15,7 @@ export default {
props: { props: {
label: String, label: String,
class: String, class: String,
htmlLabel: Boolean,
}, },
computed: { computed: {
classes() { classes() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment