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.
 
 
 
 
 
 

21 lines
380 B

<template>
<i :title="tooltipText">
<span class="sr-only" v-html=srHtml></span>
</i>
</template>
<script>
export default {
inheritAttrs: false,
props: {
alt: String,
srOnly: Boolean
},
data: function() {
return {
tooltipText: this.srOnly ? null : this.alt.replace(/~/g, ''),
srHtml: this.alt.replace(/~/g, '&nbsp;')
};
}
}
</script>