Skip to content

v0.3.5

Choose a tag to compare

@maddalax maddalax released this 11 Oct 14:19
· 244 commits to master since this release
  1. Updated OnLoad event handler to always be called on any element (not just browser supported ones such as Script, Body, Img, etc)
    This means if you need run a command / eval js against a specific element when it loads in (on initial load or even after swap), you can do so.

Example:

h.Div(
    h.OnLoad(
        js.EvalJs(`self.focus()`)
    )
)

You can reference the current element using 'self' or 'element' if you are evaluating JS on a parent or sibling.

  1. Removed usage of html.EscapeString on GetPartialPathWithQs