Skip to content

Fix #395: Add htmx partial reloads recipe#445

Merged
samdark merged 3 commits intomasterfrom
395-htmx-reloads
May 9, 2026
Merged

Fix #395: Add htmx partial reloads recipe#445
samdark merged 3 commits intomasterfrom
395-htmx-reloads

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented May 9, 2026

Adds a cookbook tutorial for using htmx to reload a GridView fragment without a full page reload.\n\nThe recipe is based on the linked demo-diary implementation from issue #395 and covers:\n\n- loading htmx through an asset bundle;\n- extracting the GridView into a widget;\n- adding htmx attributes to sort, filter, and pagination controls;\n- returning partial HTML for htmx requests;\n- updating the cookbook TOC and VitePress menu.\n\nFixes #395

Copilot AI review requested due to automatic review settings May 9, 2026 08:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Yii3 cookbook recipe documenting how to use htmx to partially reload a GridView (sorting/filtering/pagination) by returning an HTML fragment for htmx requests while keeping a full-page response for normal requests.

Changes:

  • Added a step-by-step cookbook recipe covering asset registration, widget extraction, htmx attributes, and fragment responses.
  • Updated the cookbook index to include the new recipe.
  • Updated the VitePress sidebar/menu to expose the new recipe in site navigation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/cookbook/using-htmx-for-partial-reloads.md New recipe explaining an htmx-based pattern for fragment updates of a grid without full page reloads.
src/cookbook/index.md Adds the new recipe to the cookbook table of contents.
src/.vitepress/config.js Adds the new recipe to the Cookbook sidebar navigation.

Comment thread src/cookbook/using-htmx-for-partial-reloads.md Outdated
@samdark samdark changed the title Add htmx partial reloads recipe Fix #395: Add htmx partial reloads recipe May 9, 2026
@samdark samdark merged commit 8a4a1fb into master May 9, 2026
7 checks passed
@samdark samdark deleted the 395-htmx-reloads branch May 9, 2026 10:43
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