ghas-results / vdlx-datagrid

A drop-in alternative for the <vdl-table> tag in a FICO Xpress Insight custom view.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Test CodeQL

VDLX-DATAGRID

vdlx-datagrid provides a tabular visualisation, similar to vdl-table, but allows for much larger datasets to be displayed while trading off a few features in vdl-table.

What is vdlx-datagrid

An easily implemented third-party alternative for the vdl-table component in a FICO Xpress Insight VDL view.

Features available in vdlx-datagrid

For a list of available tags and attributes for the vdlx-datagrid component see vdlx-datagrid-reference

How to use vdlx-datagrid in your Insight app

Download the appropriate release version of vdx-datagrid from releases - The first two digits of the vdlx-datagrid release version number must match the version of VDL you are using to develop. For example, if you are developing for VDL 4.6.X, download vdlx-datagrid version 4.6.X.

Unzip the vdlx-datagrid.zip release bundle into your Xpress Workbench client_resources folder. You can then add vdlx-datagrid in your views via the code editor-vdlx-datagrid is not available in the VDL Designer palette:

<vdl-include src="vdlx-datagrid/vdlx-datagrid.vdl"></vdl-include>

vdlx-datagrid is mostly a drop-in replacement for vdl-table and can generally be used by renaming code examples:

<vdlx-datagrid id="basic-example-1">
    <vdlx-datagrid-column set="SupportLevels">Support L.</vdlx-datagrid-column>
    <vdlx-datagrid-column entity="SupportCosts"></vdlx-datagrid-column>
    <vdlx-datagrid-column entity="ServiceLevelAgreements"></vdlx-datagrid-column>
</vdlx-datagrid>

The vdl-datagrid examples app

Each release includes an Xpress Insight app containing examples of how to use vdlx-datagrid features.

  • Download vdlx-datagrid-examples-app.zip from one of the releases.
  • Upload the App zip to Xpress Insight

Versions

See CHANGELOG for a list of changes in each version.

Features comparison between vdl-table and vdlx-datagrid.

Note: There are some features shared between vdl-table and vdlx-datagrid that are implemented differently. Always test any code ported between the two.

Features available in vdl-table that are not included in vdlx-datagrid

  • Block and column selection
  • Copy and Paste data
  • Global search

Features unique to vdlx-datagrid

  • Support for larger datasets
  • Scrollable table support

Building from source

This information is only required if you are developing the vdlx-datagrid extension. See the 'Usage' section above for more on using this tag in your views.

  1. npm install
  2. npm run build

Whilst developing vdlx-datagrid:

  1. Build the library with npm run build. This will place the vdlx-datagrid vdl file and minified JS and CSS into the example app.
  2. Start incremental build of the library with npm run watch. This will build an unminified version of the JS and CSS and place into the example app.
  3. Add local <client-resources-local-path> path to the cfile insight/application.xml, pointing to the absolute path for insight/client_resources.
  4. Build the example application: npm run bundle:app.
  5. Upload the app target/vdlx-datagrid-examples-app.zip to your running Insight server.

Building a release

See RELEASE for instructions.

About

A drop-in alternative for the <vdl-table> tag in a FICO Xpress Insight custom view.

License:Apache License 2.0


Languages

Language:JavaScript 91.3%Language:HTML 3.2%Language:SCSS 3.1%Language:TypeScript 2.1%Language:CSS 0.4%