Replies: 1 comment 2 replies
-
There's nothing actually stopping the API from returning the created elements, they just don't currently because the rendering is done asynchronously. I can change the functions to explicitly be async and return a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was going to create a feature request for this, but I thought it would be best to ask in case I missed something. Is there already a way to get the created container element from functions like
dv.table
,dv.list
, anddv.el
?Whenever I've wanted to manipulate the elements created by dataview, they've been simple elements created with
dv.el
so I've just resorted to usingdv.container.createEl
as a workaround. Recently, though, I've wanted to extend the lists and tables generated by dataview. As far as I know, this can't be done without copying from the source code or trying to get the created element from the container, which is less than ideal.Is there something I've missed? If not, would it be possible to implement this feature? I don't imagine the return values of those functions can be modified without breaking changes (I believe return values are rendered in certain cases), but implementing additional helper functions which do return seems possible. Thanks in advance for any help.
Beta Was this translation helpful? Give feedback.
All reactions