Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding events to textareas onRendered #443

Open
smohantyCME opened this issue Feb 1, 2022 · 0 comments
Open

Adding events to textareas onRendered #443

smohantyCME opened this issue Feb 1, 2022 · 0 comments

Comments

@smohantyCME
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant