column title as icon
or-nayax opened this issue · comments
or-nayax commented
Manki Kim commented
@or-nayax
Please refer to the code below.
PlutoColumn(
title: 'column1',
field: 'column1',
type: PlutoColumnType.text(),
width: 80,
titleSpan: WidgetSpan(
child: IconButton(
icon: const Icon(Icons.settings),
onPressed: () => print('onPressed'),
),
),
enableContextMenu: false,
enableSorting: false,
titleTextAlign: PlutoColumnTextAlign.center,
textAlign: PlutoColumnTextAlign.center,
renderer: (PlutoColumnRendererContext rendererContext) {
return IconButton(
icon: const Icon(Icons.more_vert),
onPressed: () {
print(rendererContext.rowIdx);
},
);
},
),
or-nayax commented
thanks!