Open atmgrifter00 opened 1 year ago
We should include guidance that they add logic to conditionally set a title
for cells where the content is truncated/ellipsized. Because it's not immediately obvious how to do that, they can use the text column's cell template as an example.
Should also direct them to add a toolitp to their column header content, if it is something other than plain text. (We will automatically set a header tooltip for plain text.)
This documentation should include guidance about configuring column widths as added in #1098. Specifically it should list the available mixins and describe how to apply a mixin to a new column type.
I tried prototyping a column where each cell would display a select element and haven't gotten very far. Documentation would definitely help, but a lack of TypeScript knowledge has also been a challenge.
I don't think it's worth my time to continue that attempt right now. I would like to get an idea of how much effort it would be to create Nimble custom columns vs other approaches.
Note that it's unclear if and where we might need custom columns right now. I've seen a variety of UX explorations, some of which use a table view and some of which have pretty different approaches. The goal of these questions is to give us some rough estimates we can use as an input during the UX design process.
Some questions / concerns about creating Nimble custom column types:
Right now the most likely alternative is the Radzen table, where the DataGrid control has column templates that are easy to use in Blazor. This has a different set of concerns:
With both approaches the cost of adding a second custom column type would be significantly lower:
Does anyone have a rough feel for which approach might be less work?
We met offline to discuss this. Our proposal is that apps could define "incubating" components like table columns within the Nimble repo to take advantage of its build and publishing infrastructure. They'd be marked to make it clear to clients that they're unofficial. See #1249 for more discussion.
🧹 Tech Debt
As we should expect there to be a desire on the client-side to create new column types that Nimble doesn't support out-of-the-box, we should provide sufficient documentation to help a developer accomplish this. While the Table Column spec does provide detail for how a client could go about creating a new column type, it likely isn't the most succinct, digestible way we could provide that information.