Closed granicz closed 2 years ago
We should be able to access a template's state in an OnAfterRender (OAR) handler, both in server-side and client-side templates.
Ideally, this can take two forms:
(Edited)
ws-onafterrender="your hander"
This ticket is for the F# side, closed when that's done. The work for C# is tracked on a separate ticket - https://github.com/dotnet-websharper/ui/issues/230.
We opted for option 2) above, so the OAR handler has to be declared in the template via ws-onafterrender="xxx".
ws-onafterrender="xxx"
Seems item 2) is included already, so closing this ticket.
We should be able to access a template's state in an OnAfterRender (OAR) handler, both in server-side and client-side templates.
Ideally, this can take two forms:
(Edited)
Via a new member on the template instance coming from the type provider, orws-onafterrender="your hander"
attribute. This would be normally placed on the container node that defines the template itself,This ticket is for the F# side, closed when that's done. The work for C# is tracked on a separate ticket - https://github.com/dotnet-websharper/ui/issues/230.