be-grid
v1.1.3
Published
Table library for Angular
Downloads
67
Maintainers
Readme
Intro
This library provides an easy and simple way to use some features of angular mat. It has simplified angular mat table for quick and easy way to use. It comes with most essential features of the angular mat table in one and added some additional cool features. You only need to toggle features and then boom, you are all set.
Features
Action Column The Action column is a reserved column which contains action buttons for each row provided a by a dev
Column Panel: This contains all the columns from your api response data. This gives you chance to show what column you want in the table by checking in or out.
Sticky Action Column This makes the action column and rows not scrollable on x-axis
Pagination Same as what we have for angular mat. This comes with both client and server
Filter/Search input field This helps to do general filtering in the table. This comes with both client and server
Cell Styling A cell in the table can have a customized css style (background, color, border style etc).
Cell flag A cell behaves like a cell style but comes in small size like the text in the cell.
Dragable Columns Same as what we have for angular mat.
Sortable Columns Same as what we have for angular mat.
Bugs fixed
- Unable to hide filter (search input) completly
- Table do not update when the cancel event is clicked in the search box
- ContextMenu state do not change in other component after it has been updated in previous component
New Features
- Automatically selects a row when right-clicked on the row in the table.
- Disable/Enable Export actions in ContextMenu
- To do this, set
[toggleExport] = true/false
in<be-grid>
selector
- To do this, set
- Cell-styling now takes effect on the data itself but not the entire cell
- Disable/Enable Selection of Multiple Rows
- To do this, set
[multiRowSelect] = true/false
in<be-grid>
selector - And
rowSelection: true/false
in DefColumns
- To do this, set
Installation
npm install be-grid
Contribution
Bug fixes and features are welcomed
License
MIT License
Copyright (c) 2024 Emmanuel Bonsu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.