bosskmk / pluto_grid

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
637 stars 291 forks source link

Hidden row values #958

Closed andzsinszan closed 7 months ago

andzsinszan commented 8 months ago

Is there an elegant way to assign hidden values to rows or to cells?

For example, a record - roughly speaking: a row - may have a UUID assigned. This UUID is useful for DB operations, but not something that end users should see.

In Java tables (Swing and JavaFX) the underlying data and view are separate, so it can be directly controlled what to show and how. As for PlutoGrid, I can think of:

Is there an elegant way to handle this task?

andzsinszan commented 8 months ago

Okay, it seems PlutoRow has a key member that I can use.

PlutoRow(
    key: ValueKey<String>(myRecord.uuid),
    cells: { ... }
)

Using the key as above may be a solution for single, unique properties, such as UUIDs.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.