Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular
Adding events to textareas onRendered
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 360
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
Being able to add `mouseup` event to textareas `onRendered`.
Hi!
I'm having an issue where table headers are not automatically adjusting upon embedded textareas being resized.
The issue is inherent to DataTables and not specific to this page. So I'm fine with moving this from Issues to a more appropriate place.
I'd like to be able to add a solution like http://live.datatables.net/guhunele/2/edit (where I would put that in `onRendered`) But it doesn't seem to work. I'm guessing this is because the table isn't fully loaded yet.
http://live.datatables.net/guhunele/9/edit is a similar way of doing it using delegated events (but in the `initComplete` cb). I've never had luck with `initComplete` yet.
Anyways, wondering what's the best way to add events to embedded elements once the table's been fully loaded.
Please see https://datatables.net/forums/discussion/comment/202611 for all my findings.
All credit to kthorngren from DT forums
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 comparing the onRendered and initComplete examples at live.datatables.net/guhunele/2/edit and /9/edit, then read the linked DataTables forum discussion for the reported findings. Determine the supported lifecycle point for attaching events to embedded textareas; done means the behavior is defined and demonstrated for the resizing case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100