Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

v0.0.45

Choose a tag to compare

@scaredcat scaredcat released this 02 Oct 01:39
· 97 commits to master since this release
329878f

Allow for columns to inject a classname into the row

{
      dataKey: 'id',
      header: 'ID',
      sortKey: 'id',
      sparseFields: [
        {model: 'Task', fields: ['is_active']},
      ],
      rowClass: (row) => row.attributes && (!row.attributes.is_active ? 'inactive': null),
    }

Allow item renderers to specify a react element instead of a function or a class

{
      dataKey: 'id',
      header: 'ID',
      item: <MyCustomComponent />,
    },

This will result in the CustomComponent being cloned and injected with props containing row, column and value