contributte / contributte/datagrid
New event BeforeRender?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 296
- Forks
- 215
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I using custom DataSource, for some kind of API that can be unreachable, I can handle error on my side, but It's would be great to have BeforeRender event for showing some message or pass next data to the template (example: "We had Planned outage of XY api..be calm"). Means that data should be already loaded, but render not printed. Now I can handle error but cannot render any extra message (only reimplement datagrid render).
I can help with PR but would you like this kind of feature?
An implement can be same as onRender.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how a custom DataSource is loaded and how the existing onRender behavior is invoked. Define the lifecycle and callback contract for a BeforeRender event, including how an error message or alternate template data reaches the rendered datagrid; done means the event works for the described unavailable-API case without reimplementing datagrid rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100