We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AsPagelet() allows conversion of UI Next to pagelet but there seems to be no page to nest pagelets inside UI Next.
Doc.Static(myPagelet.Body) doesn't quite work because .Render() never gets called on the pagelet.
The text was updated successfully, but these errors were encountered:
I am a bit late here but for future reference you can use something like this to get around the limitation:
let embedPagelet (pagelet : WebSharper.Html.Client.Element) = pagelet.Dom |> View.Const |> View.Map (fun el -> pagelet.Render () Doc.Static el) |> Doc.EmbedView
The trick is to execute the Render () side-effect inside the View.Map so it will be called each time the element is inserted into the DOM.
Render ()
View.Map
Sorry, something went wrong.
No branches or pull requests
AsPagelet() allows conversion of UI Next to pagelet but there seems to be no page to nest pagelets inside UI Next.
Doc.Static(myPagelet.Body) doesn't quite work because .Render() never gets called on the pagelet.
The text was updated successfully, but these errors were encountered: