contributte / contributte/datagrid
How to call custom JS before inline add/edit form is show
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 296
- Forks
- 215
- PR merge metrics
- No merged PRs in 30d
Description
Hello, i have problem with inline add/edit and selectize:
- After click on add item the form for add is displayed.
- I search for some string in selectize (loaded from DB) and found items are correctly displayed.
- I select one of the found items and save the form.
- Repeat the steo 1 above.
- I click in the selectize input and there is item from step 3.
The goal is has always empty selectize when adding new item.
Is there any way i could call custom JS before showing add form? I can clear selectize with JS easly, but dont know how or even if i can call it.
Is there any way? Thank you
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 the inline add/edit form lifecycle and the selectize integration described in the issue. Determine whether a callback or hook exists before the add form is shown, and verify the behavior by repeating the add-item flow and confirming that a new form can start with an empty selectize input.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100