Skip to content

skills: update setup guidance for IgniteUI.Blazor 26.2 — Lite dependency, optional app.bundle.js, api.js registerScript, feature-module registration #580

Todo

Description

@ivanvpetrov

Component / Area

Other (skills: igniteui-blazor-components, igniteui-blazor-grids, AGENTS.md)

Is your feature request related to a problem?

IgniteUI.Blazor 26.2 changes how the full package is set up, but the skills on master still describe 26.1. I checked each point at runtime on IgniteUI.Blazor.Trial 26.2.16-beta.0, side by side with 26.1.98:

  • Blazor WebAssembly and a Blazor Web App (Interactive Server);
  • .NET 10 (SDK 10.0.401);
  • headless Chrome, with every console message captured.

1. The full package now depends on IgniteUI.Blazor.Lite, so "do not mix" is no longer true.

  • The 26.2.16-beta.0 nuspec declares IgniteUI.Blazor.Lite 1.0.1.
  • The general components (IgbTabs, IgbChip, IgbTextarea, IgbCard, …) and AddIgniteUIBlazor itself are types from IgniteUI.Blazor.Lite.dll. Grids, charts, gauges and Dock Manager stay in IgniteUI.Blazor.dll.
  • No public type name exists in both assemblies. A project that references the full package and Lite explicitly builds with 0 warnings and runs.
  • There are no static-asset conflicts. Both packages serve under _content/IgniteUI.Blazor/: the base themes come from Lite, and themes/grid/... comes from the full package.
  • On 26.1.98, adding Lite still fails with RZ9985: Multiple components use the tag 'IgbTab' and CS0433: The type 'TabsAlignment' exists in both ….

Affected text:

  • skills/AGENTS.md L60 (Packages).
  • skills/igniteui-blazor-components/SKILL.md L40: "Do not mix IgniteUI.Blazor with IgniteUI.Blazor.Lite — duplicate types in the same namespace".
  • references/setup.md L21.

2. app.bundle.js is no longer required.

  • In 26.2 it is a 531-byte shim that only queues igRegisterScript / igRemoveScript calls. Two JS initializers load the components: IgniteUI.Blazor.Lite.*.lib.module.js and IgniteUI.Blazor.Trial.*.lib.module.js.
  • In a Blazor Web App (Interactive Server) without the tag, a grid, a category chart, a chip, tabs and a combo all render with no errors. With @Assets["_content/IgniteUI.Blazor/app.bundle.js"] the page still renders, so Ignite UI for Blazor stops working with .NET 9 Assets helper (no error but components not registered) #233 no longer applies.
  • Standalone WebAssembly also works without the tag.
  • On 26.1.98, a Web App without the tag defines no igc-* element.

Affected text:

  • skills/AGENTS.md L61 (Setup).
  • skills/igniteui-blazor-components/SKILL.md L45 (Runtime script).
  • references/setup.md §4: L78, and L82 "never wrap that tag in @Assets[...]".
  • skills/igniteui-blazor-grids/SKILL.md L64 (Script row).

3. api.js now works for the full product, and igRegisterScript is deprecated.

  • 26.2 serves _content/IgniteUI.Blazor/api.js (from Lite); on 26.1.98 it returns 404.
  • registerScript / html from api.js work for full-product templates. Tested: IgbGrid BodyTemplateScript, chart SeriesAddedScript tooltip templates, the grid ToolbarExportingScript. They need no app.bundle.js.
  • Every igRegisterScript call logs: igRegisterScript is deprecated — import { registerScript } from './_content/IgniteUI.Blazor/api.js' instead. igTemplating.html logs the same kind of warning.
  • A classic script that calls igRegisterScript before startup without the app.bundle.js tag fails with ReferenceError: igRegisterScript is not defined.
  • A grid *Script must be registered before the grid renders. Registering after render logs [Ignite UI] script '…' is not registered - call registerScript('…', ...) … before the component renders, and the script is never applied. A Lite component queues the name instead.

Affected text:

  • skills/igniteui-blazor-components/references/client-scripts.md L10: "The full product … does not ship api.js yet: register there through the igRegisterScript(…) window global, which its app.bundle.js script tag installs".
  • skills/igniteui-blazor-components/SKILL.md L52 ("… or the igRegisterScript window global (full product)").
  • Full-product examples that use igRegisterScript, e.g. the ToolbarExportingScript example in skills/igniteui-blazor-grids/references/features.md.

4. Registration: feature modules are not included by a no-argument AddIgniteUIBlazor().

  • The existing rule that feature modules "must be listed" is correct, but "with no arguments every module is available" reads as if it covered them.
  • Test: an IgbDataChart with ShowDefaultTooltip="true", hovered at 63 points.
    • Tooltips appear at 0 points with no-argument AddIgniteUIBlazor(), and at 0 with the core and category modules.
    • They appear at 33 points only once IgbDataChartInteractivityModule is listed.
    • The same holds on 26.1.98.
  • Minor: IgbToggleButtonModule is obsolete in 26.2 (CS0618, "no longer required").

Affected text: skills/igniteui-blazor-components/SKILL.md L44 (Registration) and references/setup.md L28 / L38.

Describe the solution you'd like

Update the skills for 26.2, the version master targets:

  1. Packages: in 26.2, IgniteUI.Blazor depends on IgniteUI.Blazor.Lite, and the general components are Lite's types. Don't add Lite yourself, because it is already there, but a reference no longer breaks the build. The "duplicate types" warning applies only to 26.1.x and earlier.
  2. Script tag: app.bundle.js is not needed. The JS initializers load everything in WebAssembly and in Blazor Web Apps, and @Assets[...] is safe. Remove the tag from setup steps, or keep it only as the optional igRegisterScript shim.
  3. Client scripts: register through import { registerScript, html } from './_content/IgniteUI.Blazor/api.js' for all components, from a module script loaded before the components render. Mark igRegisterScript / igTemplating as deprecated, and update the full-product examples that use them.
  4. Registration: say that feature modules (IgbDataChartInteractivityModule, IgbDataChartAnnotationModule, the tooltip-layer modules, …) must be listed even when AddIgniteUIBlazor() is otherwise called with no arguments. Drop IgbToggleButtonModule from examples.

Proposed API or Usage

@* Program.cs — feature modules must be listed explicitly *@
builder.Services.AddIgniteUIBlazor(typeof(IgbDataChartInteractivityModule));
<!-- host page: no app.bundle.js needed in 26.2 -->
<script type="module" src="my-scripts.js"></script>
// wwwroot/my-scripts.js — works for Lite and full-product components in 26.2
import { registerScript, html } from './_content/IgniteUI.Blazor/api.js';
registerScript('NameCell', (ctx) => html`<b>${ctx.implicit}</b>`);   // IgbColumn BodyTemplateScript="NameCell"

Describe alternatives you've considered

Scoping every statement to both 26.1.x and 26.2.x. Since master targets 26.2, the 26.1 behaviour could instead be one short note per point.

How important is this feature to you?

Important — affects my workflow

Additional context

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

Metadata

Metadata

Labels

📖 documentationai: agent skills

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions