Skip to content

docs: document JsFunction for executeJs#5595

Merged
Legioth merged 3 commits into
mainfrom
jsfunction
May 20, 2026
Merged

docs: document JsFunction for executeJs#5595
Legioth merged 3 commits into
mainfrom
jsfunction

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented May 19, 2026

Adds a "Passing JavaScript Functions" section to the calling-javascript reference, covering JsFunction.of(), element captures, withArguments(), and how this binding works. Also lists JsFunction among the supported executeJs parameter types.

Adds a "Passing JavaScript Functions" section to the calling-javascript
reference, covering JsFunction.of(), element captures, withArguments(),
and how `this` binding works. Also lists JsFunction among the supported
executeJs parameter types.
@Artur- Artur- requested a review from Legioth May 19, 2026 13:30
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

Preview Deployment

This PR has been deployed for preview.

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

Built from d3b69e7

Comment thread articles/flow/component-internals/element-api/calling-javascript.adoc Outdated
Comment thread articles/flow/component-internals/element-api/calling-javascript.adoc Outdated
Comment thread articles/flow/component-internals/element-api/calling-javascript.adoc Outdated
Comment thread articles/flow/component-internals/element-api/calling-javascript.adoc Outdated
Comment thread articles/flow/component-internals/element-api/calling-javascript.adoc Outdated
- Add JsFunction to callJsFunction supported types
- Add Component to executeJs supported types
- Drop the arbitrary "including Element" qualifier on captures
- Reword the runtime-arguments paragraph so "caller" refers to the
  invoking JavaScript rather than implying captures are supplied at
  call time
- Expand the "this" subsection for readers unfamiliar with how
  JavaScript binds this and how Function.prototype.call() works
- Move JsFunction section to after Return Values, since Return
  Values is the more commonly used feature
@Artur- Artur- requested a review from Legioth May 20, 2026 06:51
@Legioth Legioth merged commit 96f2030 into main May 20, 2026
8 checks passed
@Legioth Legioth deleted the jsfunction branch May 20, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants