Use Aggrid Enterprise in your NiceGUI app.
Project description
NiceGUI AG Grid Enterprise
This is a custom component for NiceGUI that integrates AG Grid Enterprise, a powerful and feature-rich data grid for JavaScript. This component allows you to easily incorporate AG Grid Enterprise into your NiceGUI applications, providing advanced grid functionalities such as sorting, filtering, and editing.
Installation
To install the NiceGUI AG Grid Enterprise component, use the following pip command:
pip install nicegui-aggrid-enterprise
Usage
Below is a minimally usable example of how to use the AG Grid Enterprise component in your NiceGUI application:
from nicegui import ui
from nicegui_aggrid_enterprise import aggrid
# Set license key
aggrid.license_key = "MY_AGGRID_LICENSE_KEY"
# Define grid options
options = {
'columnDefs': [
{'headerName': 'Make', 'field': 'make'},
{'headerName': 'Model', 'field': 'model'},
{'headerName': 'Price', 'field': 'price'}
],
'rowData': [
{'make': 'Toyota', 'model': 'Celica', 'price': 35000},
{'make': 'Ford', 'model': 'Mondeo', 'price': 32000},
{'make': 'Porsche', 'model': 'Boxster', 'price': 72000}
],
'rowSelection': 'single',
'editable': True
}
# Create an instance of aggrid
grid = aggrid(options=options)
# Start the NiceGUI application
ui.run()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nicegui_aggrid_enterprise-0.1.4.tar.gz
.
File metadata
- Download URL: nicegui_aggrid_enterprise-0.1.4.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2330db33a1e181079aecf4844f176912ac92b69e66ebfcb43b16ff07d2f2858 |
|
MD5 | e358949c3a79e135632a1e77198c6859 |
|
BLAKE2b-256 | 882b3e971268013c1e08025f7f72263ba9ec8dc181a038568e8edd66647fb2bd |
File details
Details for the file nicegui_aggrid_enterprise-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: nicegui_aggrid_enterprise-0.1.4-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef63f3cc6c52cdafed7a2796e16cc6e7139bfb9f75c3a5d8b0fb9edabd4358c |
|
MD5 | 427b183cabef83026eb4449d46c38867 |
|
BLAKE2b-256 | 31990059cad5fc6728ea02691f5fec8a865ba5bbbcdf1443bed67e58ab87e0dd |