Skip to content

docs: add code examples for Tabs, Table, Treetable#757

Open
fateeand wants to merge 3 commits into
masterfrom
docs-code-examples-tabs-table-treetable
Open

docs: add code examples for Tabs, Table, Treetable#757
fateeand wants to merge 3 commits into
masterfrom
docs-code-examples-tabs-table-treetable

Conversation

@fateeand

Copy link
Copy Markdown
Collaborator

Adds live code examples to the Tabs, Table and Treetable components' documentation pages.

Closes #739
Closes #740
Closes #747

Copilot AI review requested due to automatic review settings July 20, 2026 16:03
@fateeand fateeand added the skip-release-notes No release notes required label Jul 20, 2026
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Coverage report for library

St.
Category Percentage Covered / Total
🟡 Statements 74.26% 6031/8122
🟡 Branches 65.29% 2782/4261
🟡 Functions 74.87% 1123/1500
🟡 Lines 75.29% 5634/7483

Test suite run success

2386 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 9160618

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds CodeExampleComponent-backed live code snippets to the composition documentation pages for Table, Tree Table, and Tabs (Tab Group), by extracting example HTML/TS into dedicated *.examples.ts files and wiring those examples into the pages.

Changes:

  • Added new table-page.examples.ts, tree-table-page.examples.ts, and tab-group-page.examples.ts example registries and exposed them via readonly examples on each page component.
  • Wrapped rendered demos in <app-code-example> to show HTML/TS alongside the live component preview.
  • Updated styling to support the new layout (CodeExample host spacing + removal/adjustment of prior “gap” spacing patterns).

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
projects/composition/src/app/pages/tree-table-page/tree-table-page.examples.ts Adds Tree Table example HTML/TS strings for code preview.
projects/composition/src/app/pages/tree-table-page/tree-table-page.component.ts Wires treeTableExamples into the page and imports CodeExampleComponent.
projects/composition/src/app/pages/tree-table-page/tree-table-page.component.html Wraps each Tree Table demo in <app-code-example> and adjusts demo sizing.
projects/composition/src/app/pages/tree-table-page/tree-table-page.component.scss Adds app-code-example spacing and restructures ::ng-deep usage.
projects/composition/src/app/pages/table-page/table-page.examples.ts Adds Table example HTML/TS strings for code preview.
projects/composition/src/app/pages/table-page/table-page.component.ts Wires tableExamples into the page and imports CodeExampleComponent.
projects/composition/src/app/pages/table-page/table-page.component.html Wraps each Table demo in <app-code-example> and adjusts demo sizing.
projects/composition/src/app/pages/table-page/table-page.component.scss Adds app-code-example spacing and restructures ::ng-deep usage.
projects/composition/src/app/pages/tab-group-page/tab-group-page.examples.ts Adds Tab Group (Tabs) example HTML/TS strings for code preview.
projects/composition/src/app/pages/tab-group-page/tab-group-page.component.ts Wires tabGroupExamples into the page and imports CodeExampleComponent.
projects/composition/src/app/pages/tab-group-page/tab-group-page.component.html Wraps each Tab Group demo in <app-code-example> with labels and code.
projects/composition/src/app/pages/tab-group-page/tab-group-page.component.scss Removes now-unused title styling after switching to CodeExample labels.
projects/composition/src/app/pages/expansion-panel-page/expansion-panel-page.component.scss Removes gap spacing (now handled by CodeExample host margins).
projects/composition/src/app/pages/dialog-page/dialog-page.component.scss Removes gap spacing (now handled by CodeExample host margins).
projects/composition/src/app/pages/datepicker-page/datepicker-page.component.scss Removes gap spacing (now handled by CodeExample host margins).
projects/composition/src/app/components/code-example/code-example.component.scss Moves spacing responsibility to :host and avoids trailing margin on the last example.

Comment thread projects/composition/src/app/pages/table-page/table-page.component.html Outdated
Comment thread projects/composition/src/app/pages/tree-table-page/tree-table-page.component.html Outdated
Comment thread projects/composition/src/app/pages/table-page/table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/tree-table-page/tree-table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/table-page/table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/tree-table-page/tree-table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/table-page/table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/tree-table-page/tree-table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/table-page/table-page.examples.ts Outdated
Comment thread projects/composition/src/app/pages/tree-table-page/tree-table-page.examples.ts Outdated
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Playwright test results

passed  240 passed

Details

stats  240 tests across 5 suites
duration  6 minutes, 57 seconds
commit  9160618
info  For details, download the Playwright report

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

Labels

skip-release-notes No release notes required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add code examples for Tree table Add code examples for Tabs Add code examples for Table

2 participants