Fixed #4398 - Column: rowtogglericon slot does not expose p-row-toggler-icon class
parent
2bb51f40b1
commit
2619ae5b4e
|
@ -892,6 +892,10 @@ export interface ColumnSlots {
|
|||
* @param {Object} scope - row toggler icon slot's params.
|
||||
*/
|
||||
rowtogglericon(scope: {
|
||||
/**
|
||||
* Style class of the row toggler icon.
|
||||
*/
|
||||
class: string;
|
||||
/**
|
||||
* Current row expanded state.
|
||||
*/
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
v-bind="getColumnPT('rowToggler')"
|
||||
data-pc-group-section="rowactionbutton"
|
||||
>
|
||||
<component v-if="column.children && column.children.rowtogglericon" :is="column.children.rowtogglericon" :rowExpanded="isRowExpanded" />
|
||||
<component v-if="column.children && column.children.rowtogglericon" :is="column.children.rowtogglericon" :class="cx('rowTogglerIcon')" :rowExpanded="isRowExpanded" />
|
||||
<template v-else>
|
||||
<span v-if="isRowExpanded && expandedRowIcon" :class="[cx('rowTogglerIcon'), expandedRowIcon]" />
|
||||
<ChevronDownIcon v-else-if="isRowExpanded && !expandedRowIcon" :class="cx('rowTogglerIcon')" v-bind="getColumnPT('rowTogglerIcon')" />
|
||||
|
|
Loading…
Reference in New Issue