Can't we just override renderer and leave Editor as is? #243
-
I've a CellTypeDefinition.Create<BaseEditor, TooltipCellRenderer>() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sankarkumarP66 unfortunately not at this stage. I guess it might make sense to be able to do it - if you leave either the editor or renderer blank then it would make sense to use the default? The default text editor is BlazorDatasheet.Render.DefaultComponents.TextRenderer if you want to use that. Feel free to create an issue and I can look at modifying this to not require both editor/renderer definitions. |
Beta Was this translation helpful? Give feedback.
-
Awesome, it worked! I don't think we need to modify the code—just a documentation notes or an example to show how to use it correctly. |
Beta Was this translation helpful? Give feedback.
Hi @sankarkumarP66 unfortunately not at this stage. I guess it might make sense to be able to do it - if you leave either the editor or renderer blank then it would make sense to use the default?
The default text editor is BlazorDatasheet.Render.DefaultComponents.TextRenderer if you want to use that.
Feel free to create an issue and I can look at modifying this to not require both editor/renderer definitions.