Repository navigation
v0.3.5
- 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.
- Removed usage of html.EscapeString on GetPartialPathWithQs