This release candidate adds the opt-in template4 renderer to upstream 1.4.2
(ede9f9a03aaf329c5e01d25d665fd1e53c88cfb1). It includes desktop and mobile
presentations, Persian/RTL and English/LTR examples, and the comparison studio.
It does not include Guide: no tutorial runtime, options, styles or samples.
The full experimental snapshot is preserved on basisfly/template4-with-guide
at ada5e1f. See release versions before publishing either edition.
The implementation is native BasisCore/TypeScript, with no React runtime.
The default remains template1; templates 1, 2 and 3 remain available with
their original rendering paths and assets. Template 4 is not a universal
drop-in replacement for all legacy options; read the migration limits.
<basis core="component.grid.grid" run="atclient"
datamembername="sample.rows" options="options"></basis>Register dist/basiscore.grid.component.js and opt in using the existing options:
const options = {
columns: {name: {title: 'Name'}, city: {title: 'City'}},
culture: {deviceId: 1, template: 'template4', labels: {}},
process: 'client', direction: 'rtl', filter: 'row',
paging: [10, 30, 50], selectable: 'multi', selectAll: true,
presentation: {view: 'table', search: true}, // Use 'mobile' for vertical cards.
selectedSourceId: 'sample.selected', refreshSourceId: 'sample.refresh',
};The standalone entry remains dist/basiscore.grid.js. The studio entry combines
the native exports from src/StudioLoader.ts; it is not a second grid engine.
Public declarations are emitted to dist/types by the production build.
Use Node 22. Install the private studio dependencies separately; they are not added to the component's production dependencies. Both installs have lockfiles.
npm ci --legacy-peer-deps
npm --prefix demo/template4 ci
npm run build:demo
npm test
npm run dev -- --host 127.0.0.1 --port 18477 --no-openIn a second terminal, with that server running:
npm run test:releaseThe release check runs component/studio type checks, studio unit tests, 216
legacy comparisons, a fresh production build, artifact/version assertions and
all core browser suites. GRID_STUDIO_URL overrides the preview URL.
Chrome is the default test engine. Alternatively install Playwright Chromium
and set BROWSER_CHANNEL=chromium.
The root dashboard compares the templates. Open
/component/configuration/mobileDesign/template4.html for the full studio,
including فارسی / English, desktop/mobile, row filters, radio/checkbox
selection, HTML actions, paging and classic comparison.
The editable shell lives in demo/template4; build:demo rebuilds and copies
only its generated assets and the native component into wwwroot. There is no
runtime dependency on another local project or port. Tests use deterministic
local data, cached LineIcons CSS and the bundled icon font, not live APIs/CDNs.
Actual host styles and live backend contracts still require downstream testing.
See Template 4 configuration, English configuration, compatibility and the dashboard.