Reference
Built-in web parts
The web parts OmniCore ships, for forms and dashboards, and their settings.
On forms
Built into the forms designer:
| Part | Id | Settings |
|---|---|---|
| Heading | omnicore.heading | text; level: large (a section heading) or small (a sub-heading) |
| Text | omnicore.text | text: a paragraph, several lines |
| Divider | omnicore.divider | — |
| Sub-grid | omnicore.subgrid | title (default: the relationship's display name), relationship, view |
| Lookup | omnicore.lookup | label, hint, placeholder, readOnly, relationship, view |
Sub-grids and lookups are offered for each of the form's perspective's relationships, by the side it's on. See Forms.
On dashboards
Two packages, installed into the database's resources when the server starts.
Charts (omnicore.charts)
| Part | Id | Shows |
|---|---|---|
| Line chart | omnicore.line-chart | One line per value column over a category or date column. |
| Bar chart (vertical) | omnicore.bar-chart | One group per category, one bar per value column. |
| Bar chart (horizontal) | omnicore.bar-chart-horizontal | One row per category: rankings and long names. |
| Pie chart | omnicore.pie-chart | Each category's share of the total. |
| Donut chart | omnicore.donut-chart | Each category's share, with the total in the middle. |
Line and bar chart settings:
| Setting | |
|---|---|
title | Title |
datasource | Data source |
category | Category column |
value, value2, value3 | Up to three value columns: one line or bar each, with a legend |
color | Colour of the first value |
showValues | Show the values |
showLegend | Show a legend |
Pie and donut settings: title, datasource, category, value, showLegend (on by default) and showPercent.
Every chart provides selectedCategory (a field: clicking a bar, point or slice selects its category; clicking again
clears it) and raises clicked (an event). Charts are keyboard-operable and draw at their tile's size.
Basics (omnicore.basics)
| Part | Id | Settings |
|---|---|---|
| Grid | omnicore.grid | title, datasource, columns (comma-separated; empty for all), pageSize (default 20, at most 500), searchable (on by default) |
| Heading | omnicore.heading | text, subtitle, size (large, medium, small), align (left, center, right), color, divider |
| HTML | omnicore.html | html, css |
| Card | omnicore.card | title, datasource, value, summary, prefix, suffix, decimals, caption, color |
- Grid: a data source's rows in a table, with a search box (every word must appear in one of the columns shown,
ignoring case), sorting by heading, and pages. Clicking a row selects it and provides it as
selectedRow, with its entity; the rows found are provided asrows. The search and sort work on the rows the data source returned. - Heading: a heading with an optional subtitle and a line under it.
- HTML: the HTML as written. The page's security policy still applies: scripts and inline event handlers don't run,
and
styleattributes are ignored. Thecsssetting styles it instead, scoped to the part. - Card: a heading and one value, such as Sales this month and its total, with a coloured edge.
summaryisfirst(the first row's value, such as an aggregate's total),sum,average,count,minormaxover the rows.
Colours are chosen in settings and applied as custom properties, which the security policy allows.