Skip to content
EvotecITPublic

About

Resources

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,793 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CanopyX

Interactive views of your own records for .NET and the browser: tree grids, data grids, pivots, boards, calendars, plans, status matrices, change reviews and guided flows. Write the view in C# and save a report that opens from disk, or mount the same runtime in your web app from npm.

CanopyX.Html on NuGet CanopyX on NuGet npm MIT license

Live demos · Documentation · Getting started · Discord

A CanopyX data grid of 1,200 devices grouped by site, with health strips, patch-level bars, sign-in sparklines and a grand total

Pick a view

Every view runs on the same records, search, filters, saved views and themes. Click a picture to try it live.

Tree grid
Tree grid
Lazy branches, path search and checkboxes over 100,000 nodes.
Data grid
Data grid
Typed filters, facets, grouping with totals, editing and export.
Pivot
Pivot
Totals by row and column, with drill-through to the records.
Board
Board
Cards in status lanes, swimlanes and WIP limits.
Calendar
Calendar
Month to year, recurrence, time zones and iCalendar export.
Plan
Plan
Tasks per team with a baseline, dependencies and conflicts.
Resource timeline
Resource timeline
Events on a resource tree with capacity per group.
Status matrix
Status matrix
A state for every pair, with totals on both axes.
Change review
Change review
Change lists, text diffs and how a change reached its replicas.
Dataset compare
Dataset compare
Added, removed and changed rows between two snapshots.
Time slider
Time slider
Replay snapshots of a view step by step.
Guided flow
Guided flow
Setup and edit tasks with checks, review and one proposal.
Approval path
Approval path
The route a request takes over your records.
Layer stack
Layer stack
Which configuration layer sets each value.
Script-free table
Script-free table
The same view as an email, print or Word table.

Get started

From .NET: a report that opens from disk

dotnet add package CanopyX.Html
using CanopyX;
using CanopyX.Html;

var items = new[] { new Item("Archive", 2048, DateTime.UtcNow), new Item("Documents", 512, DateTime.UtcNow) };
CanopyDataGridView.From(items, x => x.Name).Save("inventory.html");

record Item(string Name, long Size, DateTime Modified);

Every public property becomes a typed column: Size sorts as a number and Modified as a date. [CanopyColumn(Title = "…", Format = "N0")], [CanopyIgnore] and [CanopyKey] adjust them, and From also takes a DataTable or dictionary rows. To choose the columns yourself, name each one from its member, so a renamed property fails the build:

var inventory = new CanopyDataGridView<Item>("inventory", "Inventory", x => x.Name);
inventory.Column(x => x.Name, configure: column => column.Sortable = true);
inventory.Column(x => x.Size, cell: bytes => new CanopyCell(bytes) { Text = $"{bytes:N0} bytes" });
inventory.AddRows(items).Save("inventory.html");

Open inventory.html in any browser. The page carries its own runtime and data, so you can attach it to a ticket, archive it with a run or put it on a file share. Numeric values drive sorting; Text is what the reader sees.

For a tree, build CanopyNodes under a CanopyTreeView. For a large one, SaveBundle("report") writes a folder that loads branches on demand, still with no server. The getting started guide builds both, step by step.

From JavaScript: mount a view in your page

npm install @evotecit/canopyx
<div id="files" style="height: 360px"></div>
import { createTreeGrid } from "@evotecit/canopyx";
import "@evotecit/canopyx/styles.css";

const grid = createTreeGrid(document.getElementById("files"), {
  view: {
    protocol: "canopyx/2", type: "view", id: "files", label: "Project files",
    search: { minLength: 1 },
    columns: [{ id: "name", title: "Name", kind: "text", width: 320 }],
    source: { kind: "inline" },
    roots: [{ id: "projects", label: "Projects", children: [{ id: "q3", label: "Quarterly report.pdf" }] }]
  }
});

await grid.ready;
Import Use it for Stylesheet
@evotecit/canopyx Tree grids @evotecit/canopyx/styles.css
@evotecit/canopyx/grid Flat data grids @evotecit/canopyx/grid.css
@evotecit/canopyx/reporting Data grids with grouping, aggregates and export @evotecit/canopyx/reporting.css

Already have an HTML table? CanopyX.enhance("#servers") turns it into a grid with search, filters, sorting, pages and export, and keeps the table as the fallback (enhance). Without a bundler, load classic.js and styles.css from the package; the script exposes window.CanopyX. TypeScript declarations are included, and the package has no runtime dependencies. The JavaScript guide covers the rest.

For email and print

using CanopyX.Rendering;

string table = inventory.ToStaticHtml();

The result is an HTML table with inline styles and no scripts, ready for a mail body, a print layout or Word. See email and print.

Choose a delivery

You want Write What you get
One file to attach or archive view.Save("report.html") Data and runtime in a single page
A big tree or grid on a file share view.SaveBundle("report") A folder whose branches and rows load as the reader scrolls
Millions of database rows CanopyX.Data + CanopyX.AspNetCore Paging, filters, summaries, export and edits answered by your server
A table in an email view.ToStaticHtml() A script-free table that survives mail clients

More detail, with measured numbers, is in delivery modes and large data.

Guides by task

I want to… Read
Group, filter, total and export records Reporting grids, grouping, export formats
Let readers edit cells and save through my code Editing
Put Run, Pause or Delete buttons on each row Row actions
Colour cells and rows by rule Conditional formatting
Show the same records as a calendar, board or plan Calendar, resource timeline, board, plan
Serve a grid from my database Server-side data for .NET, paging
Open one record with all its details Record panel
Filter one view from another Linked views
Show one dataset in several grids and pivots Shared datasets
Compare two snapshots Dataset comparison
Build a setup or edit wizard Guided flows
Translate the controls Label packs: Polish, German, Spanish, French and Italian are included
Add my own cell types, buttons or export formats Plugins
Run under a strict Content Security Policy Security
Match my site's colours and density Theming
Know what keyboard and screen reader users get Accessibility

Everything else: features, recipes, the authoring reference and the canopyx/2 data protocol.

Packages

Package What it is
CanopyX.Html Views, the browser runtime and the HTML writers. Start here.
CanopyX The model, bundle writer and script-free renderer, without the browser assets.
CanopyX.Data Server-side paging, filters, summaries, export and edits over IQueryable.
CanopyX.AspNetCore Minimal-API endpoints for a hosted grid.
@evotecit/canopyx ES modules, classic scripts, styles and TypeScript types.

The .NET packages target .NET 8, .NET 10, .NET Standard 2.0 and .NET Framework 4.7.2, and add no third-party runtime dependencies. Generating a report from C# needs no Node.js or build step.

Community and license

CanopyX is an Evotec project, licensed under MIT. Questions and feedback are welcome in the Evotec community on Discord. Planned work is in TODO.md, and how changes are tested is in docs/testing.md. More Evotec projects are at evotec.xyz.

About

Resources

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages