Skip to content

docs: add the JsFunction overload of addJsInitializer - #6682

Draft
vaadin-bot wants to merge 1 commit into
mainfrom
doc-bot/vaadin-flow/26889-4baa4f52d5d151ee
Draft

vaadin-bot wants to merge 1 commit into
mainfrom
doc-bot/vaadin-flow/26889-4baa4f52d5d151ee

Conversation

@vaadin-bot

Copy link
Copy Markdown
Contributor

Documentation for vaadin/flow#26889 by @totally-not-ai[bot].

Note

The source pull request is merged, so this documentation describes the final
shape of the change. Please review it and mark it ready for review.

Change categories: NEW_FEATURE, API_CHANGE

File Change
articles/flow/component-internals/element-api/calling-javascript.adoc Split the "Client-Side Lifecycle With addJsInitializer" section into the existing String expression overload and the new addJsInitializer(JsFunction) overload, which declares the initializer as a snippet instead of compiling it from a string; updated the intro paragraph and the cleanup-constraints wording to cover both overloads.

Auto-generated by the Documentation Bot — review before merging.

Generated by Documentation Bot for #26889 · agent · 109.7 AIC · ⊞ 11.7K · ◷

  • expires on Dec 16, 2026, 10:19 AM UTC

Document the addJsInitializer(JsFunction) overload on the Calling
JavaScript page: it declares the initializer as a snippet instead of
compiling it from a string, so it works under a content security
policy that doesn't allow unsafe-eval.

Documents vaadin/flow#26889 (`c303cd4099c76809ee25f0c50fb281a68cb9b36c`).
@github-actions

Copy link
Copy Markdown
Contributor

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-6682.fly.dev

Changed pages

Added content is highlighted in green; removed content is marked in red on each page.

Built from 20e9aac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant