Skip to content

docs: new JS page and updated elements page#1026

Open
laurenic0l wants to merge 12 commits into
mainfrom
add-execute-javascript-page
Open

docs: new JS page and updated elements page#1026
laurenic0l wants to merge 12 commits into
mainfrom
add-execute-javascript-page

Conversation

@laurenic0l

@laurenic0l laurenic0l commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

New Execute JavaScript page
A dedicated page for the three HasJsExecution methods (executeJs,executeJsAsync, executeJsVoidAsync) at both the Page and Element level, with a clipboard "copy invite link" demo.

Elements page cleanup
The old "Executing JavaScript" section just duplicated the new page, so it's now a pointer to it. callJsFunction stays since it's Element-specific.

Element demos refreshed
All four demos got reworked into real-world examples

The "Adding events" section on the Elements page is still small that duplicates events.md, so I deliberately left it alone since it belongs with the events work rather than this PR.

Follow up: merge events.md and event-options.md into one page, document EventDispatcher, and then come back to the Elements page and replace the events stub with a pointer.

closes #1033
closes #1032

Comment thread docs/docs/building-ui/execute-javascript.md Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
@hyyan
hyyan force-pushed the add-execute-javascript-page branch from 90b8922 to 1823eac Compare June 29, 2026 09:41

@EHandtkeBasis EHandtkeBasis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed only bug i found, LGTM

@hyyan hyyan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the demos so their names reflect their content, and ensure the tests are updated to match.

@hyyan

hyyan commented Jun 29, 2026

Copy link
Copy Markdown
Member

@laurenic0l also please link the issues

@laurenic0l

Copy link
Copy Markdown
Contributor Author

@hyyan done, done, and done! please let me know if there's anything else

@laurenic0l
laurenic0l requested a review from hyyan June 29, 2026 19:06
@hyyan hyyan added the status: waiting-for-review The PR is ready. Waiting for team members to review. label Jun 30, 2026
@hyyan

hyyan commented Jul 14, 2026

Copy link
Copy Markdown
Member

@laurenic0l please fix all conflicts

@hyyan hyyan added status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond. and removed status: waiting-for-review The PR is ready. Waiting for team members to review. labels Jul 14, 2026

@hyyan hyyan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are conflicts with the main branch that need to be resolved first. I've also left a few change requests, in addition to the following:

  1. Make sure all demos are responsive.
  2. Document callJsFunctionVoidAsync.
  3. I noticed that "Event" and "Event Options" are still not covered. Are these going to be a separate PR? Also, their order in the sidebar is wrong: "Event Options" appears before "Event." I think "Event" should come first, and it should be linked from other articles.

Comment thread src/main/frontend/css/element/elementtaginput.css
Comment thread docs/docs/building-ui/elements.md Outdated
Comment thread docs/docs/building-ui/elements.md Outdated
Comment thread src/main/java/com/webforj/samples/views/element/ElementSearchView.java Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
Comment thread docs/docs/building-ui/execute-javascript.md Outdated
@laurenic0l
laurenic0l force-pushed the add-execute-javascript-page branch from 20a9e86 to df6b6e7 Compare July 15, 2026 02:29
@laurenic0l
laurenic0l requested a review from hyyan July 16, 2026 21:33
@laurenic0l laurenic0l added status: waiting-for-review The PR is ready. Waiting for team members to review. and removed status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond. labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-review The PR is ready. Waiting for team members to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: de-scatter the Elements page JavaScript content docs: add a dedicated Execute JavaScript page for HasJsExecution

3 participants