doonfrs / pluto_grid_plus

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
27 stars 28 forks source link

[Feature] bool ColumnType #70

Open VittorioParagallo opened 3 months ago

VittorioParagallo commented 3 months ago

Refering to this request https://github.com/bosskmk/pluto_grid/issues/243 is there any plan to support more column Types? like bool for example

I anyones still needs it, i post my workaround to have PlutoColumnType.bool

PlutoColumn(
        title: "Active",
        field: 'activeTrueFalseField',
        type: PlutoColumnType.select(
          <bool>[true, false],
          defaultValue: false
        ),
        renderer: (plutoColRenderCtx) => Checkbox(
              value: plutoColRenderCtx.cell.value as bool,
              onChanged: (newValue) => plutoColRenderCtx.stateManager
                  .changeCellValue(plutoColRenderCtx.cell, newValue),
            )),

This shows a checkBox in the cell