angular
You can find it on stackblitz: stackblitz-guiexpert-angular-simple.
Add the following NPM package to your existing angular project (run this in your project root directory):
Import the (standalone) table component in your angular module (or in your angular standalone component, if you don’t work with modules):
To add the global guiexpert CSS file in your Angular project, you can include the file in the styles array within the angular.json file.
Open the angular.json
file of your project.
Look for the styles section within the configuration object for your project. It typically looks like this:
Create a component and include the guiexpert tag in the template of your component
Be sure, that your div container expands. Add this CSS rule to your component’s style.
Add two properties (tableModel
and tableOptions
) to the component. Generate a simple table model by the helper
function TableFactory.createTableModel
. The properties headerData, bodyData, and footerData are simple arrays of arrays.
Here you can see an alternate simple table model creation: