Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added a tooltip property for columns headers
  • Loading branch information
gustavobascope committed Feb 8, 2024
commit fc3fb1cef810cc56532d5c94deeda69892691e20
23 changes: 23 additions & 0 deletions resources/js/components/shared/FilterTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
class="pm-table-column-resizer"
@mousedown="startResize(index)"
/>
<b-tooltip
v-if="column.tooltip"
placement="top"
:target="`${tableName}-column-${index}`"
custom-class="pm-table-tooltip-header"
>
{{ column.tooltip }}
</b-tooltip>
</th>
</tr>
<tr>
Expand Down Expand Up @@ -367,6 +375,21 @@ export default {
border-bottom-color: #F2F8FE !important;
border-top-color: #F2F8FE !important;
}
.pm-table-tooltip-header {
opacity: 1 !important;
}
.pm-table-tooltip-header .tooltip-inner {
background-color: #deebff;
color: #104a75;
box-shadow: -5px 5px 5px rgba(0, 0, 0, 0.3);
max-width: 250px;
padding: 14px;
border-radius: 7px;
}
.pm-table-tooltip-header .arrow::before {
border-bottom-color: #deebff !important;
border-top-color: #deebff !important;
}
.pm-table-filter-applied {
color: #1572C2;
background-color: #F2F8FE !important;
Expand Down
1 change: 1 addition & 0 deletions resources/js/requests/components/RequestsListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ export default {
default: true,
width: 140,
truncate: true,
tooltip: this.$t("This column doesn't have a filter"),
},
{
label: this.$t("Participants"),
Expand Down