Skip to content

Use task IDs to identify containing div (for JS extensibility) - #11

Merged
tossnet merged 1 commit into
tossnet:mainfrom
erinnmclaughlin:main
Jul 16, 2023
Merged

tossnet merged 1 commit into
tossnet:mainfrom
erinnmclaughlin:main

Conversation

@erinnmclaughlin

Copy link
Copy Markdown

Hi! I was playing around with this library and wanted to show a little popover when a task is clicked to let users edit task details or something. I was going to do this with JS but there isn't really a way to pass the task div to JS. This small PR adds an id to the task containers on both the monthly & annual views (being a little presumptuous, I went with task-{ID#} as the convention). This way I can use getElementById and do some extra stuff with JS interop. Let me know if you have other thoughts on how to accomplish this though! Thanks!!

@tossnet
tossnet merged commit 9fa9447 into tossnet:main Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants