You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The createRender function is nice for rendering full-blown components, sometimes all you need is a data-* attribute or class to get the cell where you want it. These attributes could be merged with the ones already provided by the library to spread onto the various elements.
Where the Attrs takes the same params as the respective render properties, but expects a Record<string, unknown> or similar.
If this is something you'd be willing to accept into the library, I'm more than happy to submit a PR - just want your blessing before spending the time @bryanmylee!
The text was updated successfully, but these errors were encountered:
I personally think a plugin would make sense as it would be tree shakable and the design of the plugin system is well adapted for this kind of functionality.
The
createRender
function is nice for rendering full-blown components, sometimes all you need is adata-*
attribute orclass
to get the cell where you want it. These attributes could be merged with the ones already provided by the library to spread onto the various elements.Something along the lines of this:
Where the
Attrs
takes the same params as the respective render properties, but expects aRecord<string, unknown>
or similar.If this is something you'd be willing to accept into the library, I'm more than happy to submit a PR - just want your blessing before spending the time @bryanmylee!
The text was updated successfully, but these errors were encountered: