datatable.directory codebase
https://datatable.directory/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
381 B
20 lines
381 B
<template>
|
|
<i :title="tooltipText" @click="$emit('click')">
|
|
<span class="sr-only" v-html=srHtml></span>
|
|
</i>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
alt: String,
|
|
srOnly: Boolean
|
|
},
|
|
data: function() {
|
|
return {
|
|
tooltipText: this.srOnly ? null : this.alt.replace(/~/g, ''),
|
|
srHtml: this.alt.replace(/~/g, ' ')
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|