Files
baserow/web-frontend/modules/builder/components/elements/baseComponents/ABIcon.vue
Jonathan Adelineandpeter_baserow 062a3f829d feat: add onClick and onChange events to more elements (#6686)
* feat(builder): add click events to images, text and headings

* fix(builder): allow element clicks to dismiss menus

* feat(builder): add click actions to columns and containers

* fix(builder): isolate nested interactive controls

* feat(builder): add selection change events

* test(builder): complete event fixtures for CI

* fix: keep heading semantics and limit click areas on clickable builder elements

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-17 10:27:34 +04:00

40 lines
639 B
Vue

<template>
<i
class="ab-icon"
:class="{
'loading-spinner': loading,
'ab-icon--button': isButton,
[icon]: true,
}"
:title="title"
:data-builder-interactive="isButton || undefined"
@click="$emit('click', $event)"
/>
</template>
<script>
export default {
name: 'ABIcon',
props: {
loading: {
type: Boolean,
required: false,
default: false,
},
isButton: {
type: Boolean,
default: false,
},
icon: {
type: String,
required: true,
},
title: {
type: String,
default: '',
},
},
emits: ['click'],
}
</script>