New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ag-grid-typed-editor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-typed-editor

Quick implementation of typed html input for AgGrid.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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:

  • useFormatter: (boolean = false) used when the cell value needs formatting prior to editing, such as when using reference data and you want to display text rather than code.
  • inputAttrs: (object = {type: 'text'})
    • type: (string: required) The name of the html type you want, must be one of:
      • 'number'
      • 'text'
      • 'date'
      • 'datetime-local'
      • 'month'
      • 'color'
      • 'range'
      • 'week'
      • 'time'
    • attrs: (object) All the attrs who are valid for the targeted html type.

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

  • Thank's to ag-Grid for the great ag-Grid package.

LICENSE

This project is onto MIT license see LICENSE file.

Keywords

FAQs

Package last updated on 16 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc