From 8c274442334bf6a53f4ed1ef654e18d7763d7aae Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Thu, 19 Nov 2026 09:31:54 +0200 Subject: [PATCH 1/7] docs(skills): fix textarea, chip, card, action strip, exporter and token-lookup guidance - form-controls.md: IgbTextarea doesn't derive from IgbInputBase and fires Input (not InputOcurred); a wrong event name compiles silently; MaxLength is on both inputs - data-display.md: chip snippet that compiles in Lite and the full package (parameterless Remove, @bind-Selected, ::part(base) outline) plus a package-difference table; card width from .razor.css with ::deep instead of an inline style - features.md: action-strip defaults and what Delete/Edit/Add each need, delete-only strip, Delete mutates the bound list without re-rendering; exporter defaults to Excel/CSV/PDF, ExportPDF, JS-interop export (ExportGridAsync fails in 26.1.x), GridToolbarExporterType values - editing.md: RowEditable makes non-key columns editable without Editable - grids SKILL.md: mention PDF export - theming SKILL.md / common-patterns.md: component tokens are not in the theme CSS; list them from the web-components bundle; .razor.css needs the styles.css link; ::deep is needed for a class set on an Igb* component - gotchas.md: same ::deep correction --- .../references/data-display.md | 70 +++++++++++++------ .../references/form-controls.md | 19 +++-- .../references/gotchas.md | 4 +- skills/igniteui-blazor-grids/SKILL.md | 4 +- .../references/editing.md | 2 +- .../references/features.md | 37 ++++++++-- skills/igniteui-blazor-theming/SKILL.md | 8 ++- .../references/common-patterns.md | 11 +-- 8 files changed, 113 insertions(+), 42 deletions(-) diff --git a/skills/igniteui-blazor-components/references/data-display.md b/skills/igniteui-blazor-components/references/data-display.md index 9cbd2c37..83bc0524 100644 --- a/skills/igniteui-blazor-components/references/data-display.md +++ b/skills/igniteui-blazor-components/references/data-display.md @@ -44,21 +44,30 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide ## Card ```razor - - Card image - -

Jane Doe

- Photographer -
-

A short description.

- - Like - Buy Now - -
+
+ + Card image + +

Jane Doe

+ Photographer +
+

A short description.

+ + Like + Buy Now + +
+
``` -`IgbCard` has no default width — always give it one. +```css +/* MyView.razor.css */ +.card-row ::deep igc-card { + width: 350px; +} +``` + +`IgbCard` has no width of its own — it stretches to fill its container — so give it one from CSS, not a `style` attribute. In a `.razor.css` file, use `::deep` under an element the view renders itself: `igc-card` carries no CSS-isolation attribute, so a plain `.my-card { … }` rule there never matches, even with `class="my-card"` on the `IgbCard`. In `app.css`, a `class` plus a plain rule works. `IgbCard` has no width parameter (the full package's inherited `Width` does not size it). ## List @@ -89,18 +98,39 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide 5 - - - Blazor - -Outlined +
+ + + Blazor + + Outlined +
@code { - void OnChipRemoved(IgbVoidEventArgs e) { } + bool BlazorSelected { get; set; } + void OnChipRemoved() { } // the chip does not remove itself: drop it from your data here } ``` -`AvatarShape`: `Circle | Rounded | Square` — use `Shape`, there is no `RoundShape`. `StyleVariant` (shared by badge and chip): `Primary | Info | Success | Warning | Danger`; a chip without `Variant` has no color variant. `IgbChip` also has `Outlined`, `Selected` / `SelectedChanged` and a `Select` event. +```css +/* MyView.razor.css */ +.chip-row ::deep igc-chip.chip-outline::part(base) { + background: transparent; + border: 1px solid var(--ig-primary-500); + color: var(--ig-primary-700); +} +``` + +The chip API differs between the packages: + +| | `IgniteUI.Blazor.Lite` | `IgniteUI.Blazor` (26.1.x) | +|---|---|---| +| `Remove` | `EventCallback` | `EventCallback` | +| `Outlined` | `bool` parameter | none — `Outlined="true"` still compiles (unknown attributes pass through to `igc-chip`) but the chip stays filled | + +A `Remove` handler without parameters, as above, compiles in both. For an outlined chip in either package, style `::part(base)` on a chip without `Variant`, as above — tokens alone (`--ig-chip-background`, `--ig-chip-border-color`) are not enough, because the Lite chip has no border unless `Outlined` is set. That rule's `background` also overrides the selected fill, so a selected outlined chip is told apart only by its check icon. In Lite, `Outlined="true"` (with a `Variant` for color) gives an outlined chip without CSS. `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). + +`AvatarShape`: `Circle | Rounded | Square` — use `Shape`, there is no `RoundShape`. `StyleVariant` (shared by badge and chip): `Primary | Info | Success | Warning | Danger`; a chip without `Variant` has no color variant. ## Progress diff --git a/skills/igniteui-blazor-components/references/form-controls.md b/skills/igniteui-blazor-components/references/form-controls.md index 1965e70f..3dd9bd52 100644 --- a/skills/igniteui-blazor-components/references/form-controls.md +++ b/skills/igniteui-blazor-components/references/form-controls.md @@ -17,24 +17,33 @@ The examples compile in both packages, and the types shown are the full `IgniteU ## Text inputs -`IgbInput` and `IgbTextarea` share a base: `Label`, `Placeholder`, `Outlined`, `Disabled`, `Required`, `Invalid`, plus `Value` / `ValueChanged`. +`IgbInput` and `IgbTextarea` are separate components (`IgbTextarea` does not derive from `IgbInputBase`), but both take `Label`, `Placeholder`, `Outlined`, `Disabled`, `Required`, `Invalid`, `ReadOnly`, `MinLength` / `MaxLength`, plus `Value` / `ValueChanged`. Their typing events have **different names**. ```razor - + + +@code { + string? UserName { get; set; } + string? Notes { get; set; } + void OnNotesInput(IgbComponentValueChangedEventArgs e) => Console.WriteLine(e.Detail); +} ``` | Member | Type | Notes | |---|---|---| -| `Value` / `@bind-Value` | `string` | The correct way to read and write the value | +| `Value` / `@bind-Value` | `string` | The correct way to read and write the value. On `IgbTextarea` the bound value updates on commit (blur), not per keystroke | | `DisplayType` | `InputType` | `IgbInput` only — text, password, email, number, … | -| `InputOcurred` | `EventCallback` | Fires while typing (name is spelled with one `c`) | +| `InputOcurred` | `EventCallback` | `IgbInput` only — fires while typing (name is spelled with one `c`) | +| `Input` | `EventCallback` | `IgbTextarea` only — fires on every keystroke; `Detail` is the current text | | `Change` | `EventCallback` | Fires on commit / blur | | `Focus`, `Blur` | `EventCallback` | | -| `Rows`, `Resize`, `Wrap`, `MaxLength` | | `IgbTextarea` only | +| `Rows`, `Resize`, `Wrap` | | `IgbTextarea` only | + +A wrong event name does not fail the build: the unmatched attribute is passed to the element as text. `` compiles without a warning, and the handler never runs. `IgbInput` has **no** `GetValueAsync()`. Bind with `@bind-Value` instead of reading imperatively. diff --git a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md index a139fad0..554621fd 100644 --- a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md +++ b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md @@ -80,14 +80,14 @@ Full rules are in the theming skill's [`common-patterns.md`](../../igniteui-blaz |---|---| | `--ig-*` design tokens | **primary** — whenever a token exists for the property | | `::part(name)` | only when no token covers it, and only after confirming the part name | -| `::deep` | only in `.razor.css`, only on `igc-*` selectors | +| `::deep` | only in `.razor.css`, only on `igc-*` selectors or on a `class` you set on an `Igb*` component (it lands on the `igc-*` element, which has no scope attribute) | ```css /* app.css — global, no ::deep */ igc-chip { --ig-chip-background: var(--ig-primary-500); } igc-dialog::part(footer) { border-top: 1px solid var(--ig-gray-200); } -/* MyView.razor.css — ::deep on igc-*, never on your own class selectors */ +/* MyView.razor.css — ::deep on igc-* (and classes set on Igb* components), never on your own HTML's class selectors */ ::deep igc-chip { --ig-chip-background: var(--ig-primary-500); } .dashboard-shell { display: grid; grid-template-columns: 260px 1fr; } ``` diff --git a/skills/igniteui-blazor-grids/SKILL.md b/skills/igniteui-blazor-grids/SKILL.md index 936975fa..ef45c09e 100644 --- a/skills/igniteui-blazor-grids/SKILL.md +++ b/skills/igniteui-blazor-grids/SKILL.md @@ -1,7 +1,7 @@ --- license: MIT name: igniteui-blazor-grids -description: "Covers all Ignite UI for Blazor data grids (Grid Lite, Flat Grid, Tree Grid, Hierarchical Grid, Pivot Grid): setup, columns and templates, sorting, filtering, selection, cell and row editing, grouping, summaries, toolbar, Excel/CSV export, paging, remote and server-side data, virtualization, sizing, state persistence, and migrating Grid Lite to IgbGrid. WHEN TO USE: grids, tables, tabular data, cell editing, row selection, column pinning or hiding, grouped rows, pivot tables, tree or hierarchical data, master-detail views, grid export, or choosing a grid type. WHEN NOT TO USE: non-grid components such as lists, the tree view, or charts (use igniteui-blazor-components), grid colors, themes, or design tokens (use igniteui-blazor-theming), or building a whole view from a design image (use igniteui-blazor-generate-from-image-design)." +description: "Covers all Ignite UI for Blazor data grids (Grid Lite, Flat Grid, Tree Grid, Hierarchical Grid, Pivot Grid): setup, columns and templates, sorting, filtering, selection, cell and row editing, grouping, summaries, toolbar, Excel/CSV/PDF export, paging, remote and server-side data, virtualization, sizing, state persistence, and migrating Grid Lite to IgbGrid. WHEN TO USE: grids, tables, tabular data, cell editing, row selection, column pinning or hiding, grouped rows, pivot tables, tree or hierarchical data, master-detail views, grid export, or choosing a grid type. WHEN NOT TO USE: non-grid components such as lists, the tree view, or charts (use igniteui-blazor-components), grid colors, themes, or design tokens (use igniteui-blazor-theming), or building a whole view from a design image (use igniteui-blazor-generate-from-image-design)." user-invocable: true --- @@ -21,7 +21,7 @@ user-invocable: true | Task | Read | |---|---| | Quick start, columns, data types, cell/header/editor templates, column groups, multi-row layout, pinning, sorting UI, filtering UI, selection | [`references/structure.md`](./references/structure.md) | -| Grouping, summaries, cell merging, toolbar, Excel/CSV export, virtualization, row drag, action strip, master-detail, clipboard | [`references/features.md`](./references/features.md) | +| Grouping, summaries, cell merging, toolbar, Excel/CSV/PDF export, virtualization, row drag, action strip, master-detail, clipboard | [`references/features.md`](./references/features.md) | | Grid Lite, Tree Grid, Hierarchical Grid, Pivot Grid specifics | [`references/types.md`](./references/types.md) | | Programmatic sort / filter / group, `@ref` access, custom strategies | [`references/data-operations.md`](./references/data-operations.md) | | Cell editing, row editing, validation, custom editors, add/delete rows | [`references/editing.md`](./references/editing.md) | diff --git a/skills/igniteui-blazor-grids/references/editing.md b/skills/igniteui-blazor-grids/references/editing.md index 2eec4306..b61b1a25 100644 --- a/skills/igniteui-blazor-grids/references/editing.md +++ b/skills/igniteui-blazor-grids/references/editing.md @@ -11,7 +11,7 @@ Applies to `IgbGrid`, `IgbTreeGrid`, and `IgbHierarchicalGrid`. **`IgbPivotGrid` | Cell editing | `Editable="true"` on each column | blur, Enter, Tab | quick single-value edits | | Row editing | `RowEditable="true"` on the grid | the Done button in the row overlay | multi-field changes — **prefer this for CRUD** | -Row editing gives a clear confirm/cancel flow and prevents half-updated rows. Both modes still need `Editable="true"` on the individual columns. +Row editing gives a clear confirm/cancel flow and prevents half-updated rows. Cell editing needs `Editable="true"` on each column; with `RowEditable="true"` a column without an explicit `Editable` is editable by default (the primary-key column never is), so set `Editable="false"` on columns that must stay read-only. ## Cell editing diff --git a/skills/igniteui-blazor-grids/references/features.md b/skills/igniteui-blazor-grids/references/features.md index 48d3eb6c..cf2f42c8 100644 --- a/skills/igniteui-blazor-grids/references/features.md +++ b/skills/igniteui-blazor-grids/references/features.md @@ -83,17 +83,26 @@ Merges visually identical adjacent cells. Sort by the merged columns first, or t ## Export +`IgbGridToolbarExporter` offers Export to Excel, CSV **and PDF** by default (`ExportExcel`, `ExportCSV`, `ExportPDF` all default to `true` in the component; the C# properties read `false` until you set them); set the unwanted ones to `false` — Excel only is `ExportCSV="false" ExportPDF="false"`. PDF needs no extra module or script. `Filename` defaults to `ExportedData`. + ```razor - +@inject IJSRuntime JS -@code { - private IgbGridToolbarExporter exporter = default!; + - private Task ExportToExcel() => exporter.ExportGridAsync(GridToolbarExporterType.Excel); - private Task ExportToCsv() => exporter.ExportGridAsync(GridToolbarExporterType.CSV); +@code { + private async Task ExportToExcel() => await JS.InvokeVoidAsync("exportGrid", "excel"); + private async Task ExportToCsv() => await JS.InvokeVoidAsync("exportGrid", "csv"); } ``` +```js +// wwwroot script: export() on the first toolbar exporter of the page — "excel" | "csv" | "pdf" +window.exportGrid = (type) => document.querySelector('igc-grid-toolbar-exporter').export(type); +``` + +To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` on the page (hide the format you don't want, but keep the exporter): in `IgniteUI.Blazor` 26.1.x the C# `ExportGridAsync` / `ExportGrid` fail (`target doesn't have prop: export` in the console, a `JsonException` in .NET, nothing downloads). The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and setting `Cancel` there does not stop the download. + Configure or cancel an export from the grid's `ToolbarExporting` event. In Blazor the practical hook is the JS variant, because the exporter's own per-column and per-row events are only reachable from script: ```razor @@ -154,7 +163,23 @@ Row and column virtualization are on by default once the grid has a fixed `Heigh ``` -`IgbGridEditingActions` renders edit/delete (plus add-row when `AddRow="true"`) and needs `RowEditable="true"` on the grid to function. `IgbGridPinningActions` renders row pin/unpin. Extra buttons can be placed inside `IgbActionStrip` alongside them. +`IgbGridEditingActions` shows Edit and Delete by default (`EditRow` and `DeleteRow` default to `true` in the component; the C# properties read `false` until you set them). `AddRow="true"` adds an Add button on root rows; on `IgbTreeGrid`, `AddChild="true"` adds an Add Child button. Set `EditRow="false"` or `DeleteRow="false"` to hide one. What each needs: + +- **Delete** removes the row by key — it needs `PrimaryKey`, not `RowEditable`; without `PrimaryKey` it silently does nothing. It also removes the row from the bound `List` instance itself (not from a list that one was copied from), but the page does not re-render: `RowDeleted` is an `Action`, so call `StateHasChanged()` in its handler when something else on the page (a count, a summary) depends on the list. +- **Edit** enters row editing with `RowEditable="true"` (which also makes the non-key columns editable), or cell editing on the first `Editable="true"` column without it. With no editable column it silently does nothing. +- **Add / Add Child** need `RowEditable="true"`; otherwise they only log a console warning. + +`IgbGridPinningActions` renders row pin/unpin and needs neither. `AsMenuItems="true"` on an actions component moves its buttons into a "More" (⋮) menu. Extra buttons can be placed inside `IgbActionStrip` alongside them. + +```razor +@* delete-only strip, no row editing *@ + + + + + + +``` ## Master-detail — `IgbGrid` only diff --git a/skills/igniteui-blazor-theming/SKILL.md b/skills/igniteui-blazor-theming/SKILL.md index 8b5e1d0b..cae2a619 100644 --- a/skills/igniteui-blazor-theming/SKILL.md +++ b/skills/igniteui-blazor-theming/SKILL.md @@ -15,7 +15,13 @@ Blazor theming is **CSS-first**: a built-in theme stylesheet plus CSS custom pro 2. For anything version-specific (palette variables, component token names, layout token CSS), call the `igniteui-theming` MCP tools rather than writing names from memory. Token names are not guessable from component names. 3. Read [`references/common-patterns.md`](./references/common-patterns.md) for theme switching, dark mode, scoped overrides, and `::part()` recipes. -**Without the MCP server this skill still works** for theme selection, `IgbThemeProvider`, dark mode, and CSS structure. What it cannot give you is the exact set of `--ig--` names — in that case say the token list was not verified, or read the generated theme CSS in `_content/IgniteUI.Blazor/themes/` to confirm. Do not configure MCP unprompted; see [MCP server (optional)](#mcp-server-optional). +**Without the MCP server this skill still works** for theme selection, `IgbThemeProvider`, dark mode, and CSS structure. What it cannot give you is the exact set of `--ig--` names, and the theme stylesheets in `_content/IgniteUI.Blazor/themes/` don't have them either — they hold only global variables (palette, typography, elevation, spacing, size, scrollbar). Each `igc-*` component reads its tokens in its own styles, which ship in the package's `igniteui-webcomponents.*.bundle.js`. List them from the NuGet cache, using the package id and version from the `.csproj`: + +```bash +grep -ohE 'var\(--ig-card-[a-z0-9-]+' ~/.nuget/packages/igniteui.blazor.lite/1.0.1/staticwebassets/igniteui-webcomponents.*.bundle.js | sed 's/^var(//' | sort -u +``` + +The prefix is not always the tag name: `igc-button` reads `--ig-contained-button-*` (or `flat-`, `outlined-`, `fab-`), `igc-input` reads `--ig-input-group-*`, and `igc-linear-progress` reads `--ig-linear-bar-*`. Grid tokens (`--ig-grid-*`) are in `themes/grid//.css`. Token sets can differ between packages — e.g. the chip reads 50 tokens in `IgniteUI.Blazor.Lite` 1.0.1 (including `--ig-chip-outlined-*`) and 31 in `IgniteUI.Blazor` 26.1.98. If you cannot run the lookup, say the token list was not verified. Do not configure MCP unprompted; see [MCP server (optional)](#mcp-server-optional). | Layer | Mechanism | |---|---| diff --git a/skills/igniteui-blazor-theming/references/common-patterns.md b/skills/igniteui-blazor-theming/references/common-patterns.md index 0249f46e..5b91c783 100644 --- a/skills/igniteui-blazor-theming/references/common-patterns.md +++ b/skills/igniteui-blazor-theming/references/common-patterns.md @@ -80,9 +80,9 @@ Remember to swap the grid stylesheet variant too when a full grid is on the page ## CSS custom properties (design tokens) -Every visual attribute is a CSS custom property. Tokens are the **primary** customization layer — reach for `::part()` only when no token covers the property. +Most visual attributes are CSS custom properties (some, such as a chip label's font size or padding, are not). Tokens are the **primary** customization layer — reach for `::part()` only when no token covers the property. -1. Call `get_component_design_tokens("")` — never guess names. +1. Call `get_component_design_tokens("")` — never guess names. Without the MCP server, list the names the component actually reads from the package's `igniteui-webcomponents.*.bundle.js` (see [SKILL.md](../SKILL.md)); the theme CSS files don't contain component tokens. 2. Override the ones you need in a rule matching the component's scope. ```css @@ -107,11 +107,12 @@ igc-chip { ## `::deep` — what it does and does not do -`::deep` is Blazor's CSS-isolation combinator, not a shadow-DOM piercer. It only applies in `.razor.css` files, and only when Blazor's scope attribute sits on a parent **above** the target. +`::deep` is Blazor's CSS-isolation combinator, not a shadow-DOM piercer. It only applies in `.razor.css` files, and only when Blazor's scope attribute sits on a parent **above** the target. `.razor.css` rules load only if the host page links the `.styles.css` bundle — `dotnet new blazorwasm --empty` ships that link commented out in `index.html`. | Do | Don't | |---|---| -| `::deep igc-chip { … }` | `::deep .my-class { … }` — plain class selectors are already scoped | +| `::deep igc-chip { … }` | `::deep .my-class { … }` on your own HTML — plain class selectors are already scoped there | +| `.wrapper ::deep .my-card { … }` for a `class` set on an `Igb*` component — the class lands on the `igc-*` element, which has no scope attribute | Plain `.my-card { … }` for that class — it never matches | | `::deep igc-dialog::part(footer) { … }` | `::deep :root { … }` — never scope a `:root` block | | Plain `.layout { … }` for your own HTML | `::deep` on the component's own root element — no scoped parent exists above it | @@ -186,7 +187,7 @@ A single generated surface color rarely covers a design with a darker sidebar an 1. One built-in theme stylesheet at a time. 2. Selectors use `igc-*` tag names, never Razor component names. -3. Call `get_component_design_tokens` before writing any `--ig--*` name. +3. Call `get_component_design_tokens` (or, without MCP, look the name up in the package's web-components bundle) before writing any `--ig--*` name. 4. Load your overrides after the built-in theme so the cascade favors them. 5. Once a palette exists, use its tokens instead of raw hex — hardcoded colors break theme switching. Charts and other DV components are the exception; they need resolved color values. 6. Blazor theming is plain CSS. There is no Sass pipeline. From e18425820133824f11c6640c00c98b44ba27cfe2 Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Tue, 24 Nov 2026 16:56:27 +0200 Subject: [PATCH 2/7] docs(skills): target IgniteUI.Blazor 26.2 in the #570 guidance - data-display.md: 26.2 uses IgniteUI.Blazor.Lite's chip in both packages; drop the Lite/full table and the ::part workaround, keep the Outlined snippet with @bind-Selected and IgbVoidEventArgs, document outlined and selected styling and the outlined tokens; card Width only renders a dead attribute - features.md: exporter and editing-action defaults read true in C#; ExportGridAsync still fails (InvalidOperationException); the exporter args have no Cancel - theming SKILL.md / common-patterns.md: component tokens ship in the IgniteUI.Blazor.Lite bundle, also for IgniteUI.Blazor; look up the Lite version first --- .../references/data-display.md | 34 +++++-------------- .../references/features.md | 6 ++-- skills/igniteui-blazor-theming/SKILL.md | 7 ++-- .../references/common-patterns.md | 4 +-- 4 files changed, 17 insertions(+), 34 deletions(-) diff --git a/skills/igniteui-blazor-components/references/data-display.md b/skills/igniteui-blazor-components/references/data-display.md index 695edb7e..559e4b55 100644 --- a/skills/igniteui-blazor-components/references/data-display.md +++ b/skills/igniteui-blazor-components/references/data-display.md @@ -67,7 +67,7 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide } ``` -`IgbCard` has no width of its own — it stretches to fill its container — so give it one from CSS, not a `style` attribute. In a `.razor.css` file, use `::deep` under an element the view renders itself: `igc-card` carries no CSS-isolation attribute, so a plain `.my-card { … }` rule there never matches, even with `class="my-card"` on the `IgbCard`. In `app.css`, a `class` plus a plain rule works. `IgbCard` has no width parameter (the full package's inherited `Width` does not size it). +`IgbCard` has no width of its own — it stretches to fill its container — so give it one from CSS, not a `style` attribute. In a `.razor.css` file, use `::deep` under an element the view renders itself: `igc-card` carries no CSS-isolation attribute, so a plain `.my-card { … }` rule there never matches, even with `class="my-card"` on the `IgbCard`. In `app.css`, a `class` plus a plain rule works. `IgbCard` has no `Width` parameter: `Width="350px"` compiles, but only renders a `width` attribute on `igc-card`, which does not size it. ## List @@ -98,37 +98,19 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide 5 -
- - - Blazor - - Outlined -
+ + + Blazor + +Outlined @code { bool BlazorSelected { get; set; } - void OnChipRemoved() { } // the chip does not remove itself: drop it from your data here -} -``` - -```css -/* MyView.razor.css */ -.chip-row ::deep igc-chip.chip-outline::part(base) { - background: transparent; - border: 1px solid var(--ig-primary-500); - color: var(--ig-primary-700); + void OnChipRemoved(IgbVoidEventArgs e) { } // the chip does not remove itself: drop it from your data here } ``` -The chip API differs between the packages: - -| | `IgniteUI.Blazor.Lite` | `IgniteUI.Blazor` (26.1.x) | -|---|---|---| -| `Remove` | `EventCallback` | `EventCallback` | -| `Outlined` | `bool` parameter | none — `Outlined="true"` still compiles (unknown attributes pass through to `igc-chip`) but the chip stays filled | - -A `Remove` handler without parameters, as above, compiles in both. For an outlined chip in either package, style `::part(base)` on a chip without `Variant`, as above — tokens alone (`--ig-chip-background`, `--ig-chip-border-color`) are not enough, because the Lite chip has no border unless `Outlined` is set. That rule's `background` also overrides the selected fill, so a selected outlined chip is told apart only by its check icon. In Lite, `Outlined="true"` (with a `Variant` for color) gives an outlined chip without CSS. `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). +`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border in the `Variant` color (without a `Variant`, border and text use the default text color). Selecting a chip adds a check icon but does not change its fill, and an outlined chip stays transparent when selected unless you set `--ig-chip-selected-outlined-background`. Restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color` and `--ig-chip-border-color`. Tokens alone do not outline a chip without `Outlined` (it gets no border), and on a chip with a `Variant` the variant colors win over `--ig-chip-background` / `--ig-chip-text-color`. `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). `AvatarShape`: `Circle | Rounded | Square` — use `Shape`, there is no `RoundShape`. `StyleVariant` (shared by badge and chip): `Primary | Info | Success | Warning | Danger`; a chip without `Variant` has no color variant. diff --git a/skills/igniteui-blazor-grids/references/features.md b/skills/igniteui-blazor-grids/references/features.md index cf2f42c8..290b9fcc 100644 --- a/skills/igniteui-blazor-grids/references/features.md +++ b/skills/igniteui-blazor-grids/references/features.md @@ -83,7 +83,7 @@ Merges visually identical adjacent cells. Sort by the merged columns first, or t ## Export -`IgbGridToolbarExporter` offers Export to Excel, CSV **and PDF** by default (`ExportExcel`, `ExportCSV`, `ExportPDF` all default to `true` in the component; the C# properties read `false` until you set them); set the unwanted ones to `false` — Excel only is `ExportCSV="false" ExportPDF="false"`. PDF needs no extra module or script. `Filename` defaults to `ExportedData`. +`IgbGridToolbarExporter` offers Export to Excel, CSV **and PDF** by default (`ExportExcel`, `ExportCSV`, `ExportPDF` all default to `true`); set the unwanted ones to `false` — Excel only is `ExportCSV="false" ExportPDF="false"`. PDF needs no extra module or script. `Filename` defaults to `ExportedData`. ```razor @inject IJSRuntime JS @@ -101,7 +101,7 @@ Merges visually identical adjacent cells. Sort by the merged columns first, or t window.exportGrid = (type) => document.querySelector('igc-grid-toolbar-exporter').export(type); ``` -To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` on the page (hide the format you don't want, but keep the exporter): in `IgniteUI.Blazor` 26.1.x the C# `ExportGridAsync` / `ExportGrid` fail (`target doesn't have prop: export` in the console, a `JsonException` in .NET, nothing downloads). The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and setting `Cancel` there does not stop the download. +To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` on the page (hide the format you don't want, but keep the exporter). The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and cannot cancel the export (`IgbExporterEventArgsDetail` has no `Cancel`). Configure or cancel an export from the grid's `ToolbarExporting` event. In Blazor the practical hook is the JS variant, because the exporter's own per-column and per-row events are only reachable from script: @@ -163,7 +163,7 @@ Row and column virtualization are on by default once the grid has a fixed `Heigh ``` -`IgbGridEditingActions` shows Edit and Delete by default (`EditRow` and `DeleteRow` default to `true` in the component; the C# properties read `false` until you set them). `AddRow="true"` adds an Add button on root rows; on `IgbTreeGrid`, `AddChild="true"` adds an Add Child button. Set `EditRow="false"` or `DeleteRow="false"` to hide one. What each needs: +`IgbGridEditingActions` shows Edit and Delete by default (`EditRow` and `DeleteRow` default to `true`). `AddRow="true"` adds an Add button on root rows; on `IgbTreeGrid`, `AddChild="true"` adds an Add Child button. Set `EditRow="false"` or `DeleteRow="false"` to hide one. What each needs: - **Delete** removes the row by key — it needs `PrimaryKey`, not `RowEditable`; without `PrimaryKey` it silently does nothing. It also removes the row from the bound `List` instance itself (not from a list that one was copied from), but the page does not re-render: `RowDeleted` is an `Action`, so call `StateHasChanged()` in its handler when something else on the page (a count, a summary) depends on the list. - **Edit** enters row editing with `RowEditable="true"` (which also makes the non-key columns editable), or cell editing on the first `Editable="true"` column without it. With no editable column it silently does nothing. diff --git a/skills/igniteui-blazor-theming/SKILL.md b/skills/igniteui-blazor-theming/SKILL.md index cae2a619..2f7cfc7d 100644 --- a/skills/igniteui-blazor-theming/SKILL.md +++ b/skills/igniteui-blazor-theming/SKILL.md @@ -15,13 +15,14 @@ Blazor theming is **CSS-first**: a built-in theme stylesheet plus CSS custom pro 2. For anything version-specific (palette variables, component token names, layout token CSS), call the `igniteui-theming` MCP tools rather than writing names from memory. Token names are not guessable from component names. 3. Read [`references/common-patterns.md`](./references/common-patterns.md) for theme switching, dark mode, scoped overrides, and `::part()` recipes. -**Without the MCP server this skill still works** for theme selection, `IgbThemeProvider`, dark mode, and CSS structure. What it cannot give you is the exact set of `--ig--` names, and the theme stylesheets in `_content/IgniteUI.Blazor/themes/` don't have them either — they hold only global variables (palette, typography, elevation, spacing, size, scrollbar). Each `igc-*` component reads its tokens in its own styles, which ship in the package's `igniteui-webcomponents.*.bundle.js`. List them from the NuGet cache, using the package id and version from the `.csproj`: +**Without the MCP server this skill still works** for theme selection, `IgbThemeProvider`, dark mode, and CSS structure. What it cannot give you is the exact set of `--ig--` names, and the theme stylesheets in `_content/IgniteUI.Blazor/themes/` don't have them either — they hold only global variables (palette, typography, elevation, spacing, size, scrollbar). Each `igc-*` component reads its tokens in its own styles, which ship in `igniteui-webcomponents.*.bundle.js` of the `IgniteUI.Blazor.Lite` package — also when the project references `IgniteUI.Blazor`, which depends on it. Get the Lite version, then list the tokens from the NuGet cache: ```bash -grep -ohE 'var\(--ig-card-[a-z0-9-]+' ~/.nuget/packages/igniteui.blazor.lite/1.0.1/staticwebassets/igniteui-webcomponents.*.bundle.js | sed 's/^var(//' | sort -u +dotnet list package --include-transitive | grep -i igniteui.blazor.lite +grep -ohE 'var\(--ig-card-[a-z0-9-]+' ~/.nuget/packages/igniteui.blazor.lite//staticwebassets/igniteui-webcomponents.*.bundle.js | sed 's/^var(//' | sort -u ``` -The prefix is not always the tag name: `igc-button` reads `--ig-contained-button-*` (or `flat-`, `outlined-`, `fab-`), `igc-input` reads `--ig-input-group-*`, and `igc-linear-progress` reads `--ig-linear-bar-*`. Grid tokens (`--ig-grid-*`) are in `themes/grid//.css`. Token sets can differ between packages — e.g. the chip reads 50 tokens in `IgniteUI.Blazor.Lite` 1.0.1 (including `--ig-chip-outlined-*`) and 31 in `IgniteUI.Blazor` 26.1.98. If you cannot run the lookup, say the token list was not verified. Do not configure MCP unprompted; see [MCP server (optional)](#mcp-server-optional). +The prefix is not always the tag name: `igc-button` reads `--ig-contained-button-*` (or `flat-`, `outlined-`, `fab-`), `igc-input` reads `--ig-input-group-*`, and `igc-linear-progress` reads `--ig-linear-bar-*`. Grid tokens (`--ig-grid-*`) are in the full package's `themes/grid//.css`. If you cannot run the lookup, say the token list was not verified. Do not configure MCP unprompted; see [MCP server (optional)](#mcp-server-optional). | Layer | Mechanism | |---|---| diff --git a/skills/igniteui-blazor-theming/references/common-patterns.md b/skills/igniteui-blazor-theming/references/common-patterns.md index 5b91c783..ae7efa93 100644 --- a/skills/igniteui-blazor-theming/references/common-patterns.md +++ b/skills/igniteui-blazor-theming/references/common-patterns.md @@ -82,7 +82,7 @@ Remember to swap the grid stylesheet variant too when a full grid is on the page Most visual attributes are CSS custom properties (some, such as a chip label's font size or padding, are not). Tokens are the **primary** customization layer — reach for `::part()` only when no token covers the property. -1. Call `get_component_design_tokens("")` — never guess names. Without the MCP server, list the names the component actually reads from the package's `igniteui-webcomponents.*.bundle.js` (see [SKILL.md](../SKILL.md)); the theme CSS files don't contain component tokens. +1. Call `get_component_design_tokens("")` — never guess names. Without the MCP server, list the names the component actually reads from the `IgniteUI.Blazor.Lite` package's `igniteui-webcomponents.*.bundle.js` (see [SKILL.md](../SKILL.md)); the theme CSS files don't contain component tokens. 2. Override the ones you need in a rule matching the component's scope. ```css @@ -187,7 +187,7 @@ A single generated surface color rarely covers a design with a darker sidebar an 1. One built-in theme stylesheet at a time. 2. Selectors use `igc-*` tag names, never Razor component names. -3. Call `get_component_design_tokens` (or, without MCP, look the name up in the package's web-components bundle) before writing any `--ig--*` name. +3. Call `get_component_design_tokens` (or, without MCP, look the name up in the `IgniteUI.Blazor.Lite` web-components bundle) before writing any `--ig--*` name. 4. Load your overrides after the built-in theme so the cascade favors them. 5. Once a palette exists, use its tokens instead of raw hex — hardcoded colors break theme switching. Charts and other DV components are the exception; they need resolved color values. 6. Blazor theming is plain CSS. There is no Sass pipeline. From ffdb353e7ea8d0fdb287cf540a0005a61e23e03d Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Tue, 24 Nov 2026 17:10:37 +0200 Subject: [PATCH 3/7] docs(skills): show how to load the exportGrid script --- skills/igniteui-blazor-grids/references/features.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skills/igniteui-blazor-grids/references/features.md b/skills/igniteui-blazor-grids/references/features.md index 290b9fcc..13caf3e8 100644 --- a/skills/igniteui-blazor-grids/references/features.md +++ b/skills/igniteui-blazor-grids/references/features.md @@ -97,10 +97,15 @@ Merges visually identical adjacent cells. Sort by the merged columns first, or t ``` ```js -// wwwroot script: export() on the first toolbar exporter of the page — "excel" | "csv" | "pdf" +// wwwroot/js/export-grid.js — export() on the first toolbar exporter of the page: "excel" | "csv" | "pdf" window.exportGrid = (type) => document.querySelector('igc-grid-toolbar-exporter').export(type); ``` +```html + + +``` + To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` on the page (hide the format you don't want, but keep the exporter). The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and cannot cancel the export (`IgbExporterEventArgsDetail` has no `Cancel`). Configure or cancel an export from the grid's `ToolbarExporting` event. In Blazor the practical hook is the JS variant, because the exporter's own per-column and per-row events are only reachable from script: From 85e693d6bd27b982975cd604f3fb09e7df647818 Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Tue, 24 Nov 2026 19:13:31 +0200 Subject: [PATCH 4/7] docs(skills): scope the JS export workaround to its grid (review feedback on #571) --- .../references/features.md | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/skills/igniteui-blazor-grids/references/features.md b/skills/igniteui-blazor-grids/references/features.md index 13caf3e8..5cf5d391 100644 --- a/skills/igniteui-blazor-grids/references/features.md +++ b/skills/igniteui-blazor-grids/references/features.md @@ -88,17 +88,28 @@ Merges visually identical adjacent cells. Sort by the merged columns first, or t ```razor @inject IJSRuntime JS - +
+ + + + + + + … + +
@code { - private async Task ExportToExcel() => await JS.InvokeVoidAsync("exportGrid", "excel"); - private async Task ExportToCsv() => await JS.InvokeVoidAsync("exportGrid", "csv"); + private ElementReference employeesHost; // one host per grid, so each export targets its own grid + + private async Task ExportToExcel() => await JS.InvokeVoidAsync("exportGrid", employeesHost, "excel"); + private async Task ExportToCsv() => await JS.InvokeVoidAsync("exportGrid", employeesHost, "csv"); } ``` ```js -// wwwroot/js/export-grid.js — export() on the first toolbar exporter of the page: "excel" | "csv" | "pdf" -window.exportGrid = (type) => document.querySelector('igc-grid-toolbar-exporter').export(type); +// wwwroot/js/export-grid.js — export() on the toolbar exporter inside the host element: "excel" | "csv" | "pdf" +window.exportGrid = (host, type) => host.querySelector('igc-grid-toolbar-exporter').export(type); ``` ```html @@ -106,7 +117,7 @@ window.exportGrid = (type) => document.querySelector('igc-grid-toolbar-exporter' ``` -To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` on the page (hide the format you don't want, but keep the exporter). The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and cannot cancel the export (`IgbExporterEventArgsDetail` has no `Cancel`). +To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` in the grid's toolbar (hide the format you don't want, but keep the exporter), and passing the grid's host element keeps the export on that grid when the page has several. The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and cannot cancel the export (`IgbExporterEventArgsDetail` has no `Cancel`). Configure or cancel an export from the grid's `ToolbarExporting` event. In Blazor the practical hook is the JS variant, because the exporter's own per-column and per-row events are only reachable from script: From 2760092d50ae605f4a8342bf25805bf86d183db4 Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Wed, 25 Nov 2026 11:30:08 +0200 Subject: [PATCH 5/7] docs(skills): address review of #571 - Chip: tokens apply only without a Variant; with one, the variant rules win (including --ig-chip-selected-outlined-background), so style ::part(base). Theme differences: Fluent/Indigo fill a selected chip, Indigo's outlined chip has a light fill; an outlined Variant chip keeps the default text color. - Input/Textarea: @bind-Value updates on commit for both; use InputOcurred / Input for live text. - Export: Detail.Options and Detail.Grid are always null; hidden formats can still be exported from code; the helper throws without an exporter. - Card: width behaviour in block vs flex containers. - gotchas: ::deep igc-chip needs a wrapper element rendered by the view. --- .../igniteui-blazor-components/references/data-display.md | 6 ++++-- .../igniteui-blazor-components/references/form-controls.md | 2 +- .../references/gotchas.md | 2 +- skills/igniteui-blazor-grids/references/features.md | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/skills/igniteui-blazor-components/references/data-display.md b/skills/igniteui-blazor-components/references/data-display.md index 559e4b55..3082351b 100644 --- a/skills/igniteui-blazor-components/references/data-display.md +++ b/skills/igniteui-blazor-components/references/data-display.md @@ -67,7 +67,7 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide } ``` -`IgbCard` has no width of its own — it stretches to fill its container — so give it one from CSS, not a `style` attribute. In a `.razor.css` file, use `::deep` under an element the view renders itself: `igc-card` carries no CSS-isolation attribute, so a plain `.my-card { … }` rule there never matches, even with `class="my-card"` on the `IgbCard`. In `app.css`, a `class` plus a plain rule works. `IgbCard` has no `Width` parameter: `Width="350px"` compiles, but only renders a `width` attribute on `igc-card`, which does not size it. +`IgbCard` has no width of its own — in a block container it stretches to the container's width, in a flex row it shrinks to its content — so give it one from CSS, not a `style` attribute. In a `.razor.css` file, use `::deep` under an element the view renders itself: `igc-card` carries no CSS-isolation attribute, so a plain `.my-card { … }` rule there never matches, even with `class="my-card"` on the `IgbCard`. In `app.css`, a `class` plus a plain rule works. `IgbCard` has no `Width` parameter: `Width="350px"` compiles, but only renders a `width` attribute on `igc-card`, which does not size it. ## List @@ -110,7 +110,9 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide } ``` -`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border in the `Variant` color (without a `Variant`, border and text use the default text color). Selecting a chip adds a check icon but does not change its fill, and an outlined chip stays transparent when selected unless you set `--ig-chip-selected-outlined-background`. Restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color` and `--ig-chip-border-color`. Tokens alone do not outline a chip without `Outlined` (it gets no border), and on a chip with a `Variant` the variant colors win over `--ig-chip-background` / `--ig-chip-text-color`. `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). +`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border; with a `Variant` the border takes the variant color and the text keeps the default text color (Indigo gives an outlined chip without `Variant` a light fill and a grey border). Selecting a chip adds a check icon. In Bootstrap and Material that is all it changes; Fluent and Indigo also fill a selected, non-outlined chip with the primary color. An outlined chip stays transparent when selected. + +Chip tokens apply only when no `Variant` is set. Without one, restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color`, `--ig-chip-border-color` and `--ig-chip-selected-outlined-background`. With a `Variant`, the variant rules win over all of these and over `--ig-chip-background` / `--ig-chip-text-color`; style the part instead, e.g. `.chips ::deep igc-chip[selected]::part(base) { background: …; }` in the view's `.razor.css`, where `.chips` is an element the view renders. Tokens alone do not outline a chip without `Outlined` (it gets no border). `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). `AvatarShape`: `Circle | Rounded | Square` — use `Shape`, there is no `RoundShape`. `StyleVariant` (shared by badge and chip): `Primary | Info | Success | Warning | Danger`; a chip without `Variant` has no color variant. diff --git a/skills/igniteui-blazor-components/references/form-controls.md b/skills/igniteui-blazor-components/references/form-controls.md index 3dd9bd52..e388069b 100644 --- a/skills/igniteui-blazor-components/references/form-controls.md +++ b/skills/igniteui-blazor-components/references/form-controls.md @@ -35,7 +35,7 @@ The examples compile in both packages, and the types shown are the full `IgniteU | Member | Type | Notes | |---|---|---| -| `Value` / `@bind-Value` | `string` | The correct way to read and write the value. On `IgbTextarea` the bound value updates on commit (blur), not per keystroke | +| `Value` / `@bind-Value` | `string` | The correct way to read and write the value. On both `IgbInput` and `IgbTextarea` the bound value updates on commit (blur / `Change`), not per keystroke; for live text handle `InputOcurred` (`IgbInput`) or `Input` (`IgbTextarea`) | | `DisplayType` | `InputType` | `IgbInput` only — text, password, email, number, … | | `InputOcurred` | `EventCallback` | `IgbInput` only — fires while typing (name is spelled with one `c`) | | `Input` | `EventCallback` | `IgbTextarea` only — fires on every keystroke; `Detail` is the current text | diff --git a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md index 554621fd..45104289 100644 --- a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md +++ b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md @@ -92,7 +92,7 @@ igc-dialog::part(footer) { border-top: 1px solid var(--ig-gray-200); } .dashboard-shell { display: grid; grid-template-columns: 260px 1fr; } ``` -`::deep` does **not** work on the component's own root element — Blazor puts the scope attribute there, so there is no scoped parent above it. Never add `::deep` to a `:root {}` block. `create_component_theme` emits global CSS; use it verbatim in `app.css`. Blazor projects have no Sass step. +`::deep` does **not** work on the component's own root element — Blazor puts the scope attribute there, so there is no scoped parent above it. For the same reason `::deep igc-chip` matches only chips inside an HTML element the view renders; a chip at the top level of the view needs a wrapper element. Never add `::deep` to a `:root {}` block. `create_component_theme` emits global CSS; use it verbatim in `app.css`. Blazor projects have no Sass step. ## Charts diff --git a/skills/igniteui-blazor-grids/references/features.md b/skills/igniteui-blazor-grids/references/features.md index 5cf5d391..33e0b55b 100644 --- a/skills/igniteui-blazor-grids/references/features.md +++ b/skills/igniteui-blazor-grids/references/features.md @@ -117,7 +117,7 @@ window.exportGrid = (host, type) => host.querySelector('igc-grid-toolbar-exporte ``` -To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` in the grid's toolbar (hide the format you don't want, but keep the exporter), and passing the grid's host element keeps the export on that grid when the page has several. The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but the C# `ExportStarted` args carry no `Options` and cannot cancel the export (`IgbExporterEventArgsDetail` has no `Cancel`). +To export from code, call the element's `export()` through JS interop as above — this needs an `IgbGridToolbarExporter` in the grid's toolbar (without one the helper throws a `JSException`: `Cannot read properties of null`). `ExportCSV` / `ExportPDF="false"` only hide that format in the menu; `export('csv')` / `export('pdf')` still work. Passing the grid's host element keeps the export on that grid when the page has several. The C# `ExportGridAsync` / `ExportGrid` fail: the console logs `target doesn't have prop: export`, .NET throws an `InvalidOperationException`, and nothing downloads. The `GridToolbarExporterType` values are `Excel`, `Csv`, `Pdf` — not `CSV`. `ExportStarted` / `ExportEnded` fire for every export, but in the C# `ExportStarted` args `Detail.Options` and `Detail.Grid` are always `null`, and the export cannot be cancelled (`IgbExporterEventArgsDetail` has no `Cancel`). Configure or cancel an export from the grid's `ToolbarExporting` event. In Blazor the practical hook is the JS variant, because the exporter's own per-column and per-row events are only reachable from script: From 1bf208dc75ee3006b79db66254c90bda98d81f31 Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Wed, 25 Nov 2026 18:04:18 +0200 Subject: [PATCH 6/7] docs(skills): address round-2 review of #571 Chip: Fluent/Indigo selection colors apply only without a Variant (and give an outlined chip a primary border); size/shape tokens still apply with a Variant; selected outlined chips use the selected-outlined/selected-border tokens; the ::part(base) example sets border-color and color too. gotchas: clarify the ::deep comment. --- skills/igniteui-blazor-components/references/data-display.md | 4 ++-- .../references/gotchas.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skills/igniteui-blazor-components/references/data-display.md b/skills/igniteui-blazor-components/references/data-display.md index 3082351b..a78f9b65 100644 --- a/skills/igniteui-blazor-components/references/data-display.md +++ b/skills/igniteui-blazor-components/references/data-display.md @@ -110,9 +110,9 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide } ``` -`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border; with a `Variant` the border takes the variant color and the text keeps the default text color (Indigo gives an outlined chip without `Variant` a light fill and a grey border). Selecting a chip adds a check icon. In Bootstrap and Material that is all it changes; Fluent and Indigo also fill a selected, non-outlined chip with the primary color. An outlined chip stays transparent when selected. +`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border; with a `Variant` the border takes the variant color and the text stays the theme's text color (Indigo gives an outlined chip without `Variant` a light fill and a grey border). Selecting a chip adds a check icon. In Bootstrap and Material that is all it changes. In Fluent and Indigo, selecting a chip **without** a `Variant` also fills a non-outlined chip with the primary color and gives an outlined one a primary border and darker text. A chip with a `Variant` keeps its variant colors when selected, and an outlined chip stays transparent when selected. -Chip tokens apply only when no `Variant` is set. Without one, restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color`, `--ig-chip-border-color` and `--ig-chip-selected-outlined-background`. With a `Variant`, the variant rules win over all of these and over `--ig-chip-background` / `--ig-chip-text-color`; style the part instead, e.g. `.chips ::deep igc-chip[selected]::part(base) { background: …; }` in the view's `.razor.css`, where `.chips` is an element the view renders. Tokens alone do not outline a chip without `Outlined` (it gets no border). `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). +Without a `Variant`, restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color` and `--ig-chip-border-color`; once it is selected these are replaced by `--ig-chip-selected-outlined-background`, `--ig-chip-selected-outlined-text-color` and `--ig-chip-selected-border-color`. With a `Variant`, the variant rules win over every background, text and border token (including `--ig-chip-background` / `--ig-chip-text-color`); size and shape tokens such as `--ig-chip-size` and `--ig-chip-border-radius` still apply. To recolor a variant chip, style the part, e.g. `.chips ::deep igc-chip[selected]::part(base) { background: …; border-color: …; color: …; }` in the view's `.razor.css`, where `.chips` is an element the view renders. Tokens alone do not outline a chip without `Outlined` (it gets no border). `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state). `AvatarShape`: `Circle | Rounded | Square` — use `Shape`, there is no `RoundShape`. `StyleVariant` (shared by badge and chip): `Primary | Info | Success | Warning | Danger`; a chip without `Variant` has no color variant. diff --git a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md index 45104289..6dddd23a 100644 --- a/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md +++ b/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md @@ -87,7 +87,7 @@ Full rules are in the theming skill's [`common-patterns.md`](../../igniteui-blaz igc-chip { --ig-chip-background: var(--ig-primary-500); } igc-dialog::part(footer) { border-top: 1px solid var(--ig-gray-200); } -/* MyView.razor.css — ::deep on igc-* (and classes set on Igb* components), never on your own HTML's class selectors */ +/* MyView.razor.css — ::deep before igc-* selectors (and classes set on Igb* components); a plain .my-class for your own HTML */ ::deep igc-chip { --ig-chip-background: var(--ig-primary-500); } .dashboard-shell { display: grid; grid-template-columns: 260px 1fr; } ``` From 02aff7f2ee40ab8733e4ab573dedc4fd5a75af4d Mon Sep 17 00:00:00 2001 From: "INFRAGISTICS\\IPetrov" Date: Wed, 25 Nov 2026 18:43:11 +0200 Subject: [PATCH 7/7] docs(skills): chip wording (round-3 review of #571) --- skills/igniteui-blazor-components/references/data-display.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/igniteui-blazor-components/references/data-display.md b/skills/igniteui-blazor-components/references/data-display.md index a78f9b65..34877277 100644 --- a/skills/igniteui-blazor-components/references/data-display.md +++ b/skills/igniteui-blazor-components/references/data-display.md @@ -110,7 +110,7 @@ The parameter is **`IconName`**, not `Name` (`Name` is the framework element ide } ``` -`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border; with a `Variant` the border takes the variant color and the text stays the theme's text color (Indigo gives an outlined chip without `Variant` a light fill and a grey border). Selecting a chip adds a check icon. In Bootstrap and Material that is all it changes. In Fluent and Indigo, selecting a chip **without** a `Variant` also fills a non-outlined chip with the primary color and gives an outlined one a primary border and darker text. A chip with a `Variant` keeps its variant colors when selected, and an outlined chip stays transparent when selected. +`Remove` is an `EventCallback`. `Outlined="true"` gives a transparent chip with a 1px border; with a `Variant` the border takes the variant color and the text stays the theme's text color (Indigo gives an outlined chip without `Variant` a light fill and a grey border). Selecting a chip adds a check icon. In Bootstrap and Material that is all it changes. In Fluent and Indigo, selecting a chip **without** a `Variant` also fills a non-outlined chip with the primary color and gives an outlined one a primary border and darker text. A chip with a `Variant` keeps its variant colors when selected, and an outlined chip is transparent when selected. Without a `Variant`, restyle an outlined chip with `--ig-chip-outlined-background`, `--ig-chip-outlined-text-color` and `--ig-chip-border-color`; once it is selected these are replaced by `--ig-chip-selected-outlined-background`, `--ig-chip-selected-outlined-text-color` and `--ig-chip-selected-border-color`. With a `Variant`, the variant rules win over every background, text and border token (including `--ig-chip-background` / `--ig-chip-text-color`); size and shape tokens such as `--ig-chip-size` and `--ig-chip-border-radius` still apply. To recolor a variant chip, style the part, e.g. `.chips ::deep igc-chip[selected]::part(base) { background: …; border-color: …; color: …; }` in the view's `.razor.css`, where `.chips` is an element the view renders. Tokens alone do not outline a chip without `Outlined` (it gets no border). `IgbChip` also has `Selected` / `SelectedChanged` (`@bind-Selected`) and a `Select` event (`IgbComponentBoolValueChangedEventArgs`; `Detail` is the new state).