avallete / ag-grid-typed-editor

Quick implementation of typed html input for AgGrid
MIT License
1 stars 0 forks source link

ag-grid-typed-editor

Quick implementation of typed html input editor for ag-Grid.

Install

npm install --save ag-grid-typed-editor

Description

The goal of this package is to provide an easy way to have html typed input for agGrid editors.

Usage

This package provide a new cellEditor named: InputParameterizedCellEditor. You can configure and customize the cell and behavior with the following cellEditorParams:

Demo

ag-grid-typed-editor-demo

Example

Simple number input typed example

import {InputParameterizedCellEditor} from './ag-grid-typed-editor';
...
{
    headerName: 'A number',
    field: 'somenumber',
    editable: true,
    resizable: true,
    cellEditor: InputParameterizedCellEditor,
    cellEditorParams: {
        inputAttrs: {
            type: 'number',
            attrs: {
                min: 1,
                max: Number.MAX_SAFE_INTEGER,   
            }
        },
    },
}

Dependencies

Thank's to

LICENSE

This project is onto MIT license see LICENSE file.