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

Add onRender() method to tag objects #209

Closed
cpsievert opened this issue Apr 6, 2021 · 1 comment
Closed

Add onRender() method to tag objects #209

cpsievert opened this issue Apr 6, 2021 · 1 comment

Comments

@cpsievert
Copy link
Collaborator

Which should remove the need to rely so heavily on "black box" tagFunction()s. This way we at least would have a chance at being able to select "dynamic" tags based on their contents pre-render (related to #208).

We should support both of these interfaces? And have the 2nd version implemented with the 1st?

div(
  span(a("foo")),
  .onRender = function(x) {
    tagQuery(x)$find("a")$asTags()
  }
)
onRender(
  span(a("foo")),
  function(x) {
     tagQuery(x)$find("a")$asTags()
  }
)
@cpsievert
Copy link
Collaborator Author

Will be closed by #215

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