noi-techpark / it.bz.opendatahub.databrowser

Explore and navigate through Open Data you need to build your next service.
https://databrowser.opendatahub.com
GNU Affero General Public License v3.0
9 stars 7 forks source link

Add number support to InputCustom and StringCell #636

Closed gappc closed 1 month ago

gappc commented 1 month ago

This commit adds support for numbers (among others) to the InputCustom and StringCell.

Example usage of StringCell in config:

{
  title: 'Age',
  component: CellComponent.StringCell,
  objectMapping: { text: 'Age' },
  params: { type: 'number' }
}

In essence, you can set the type in the params property of the StringCell. That type will be promoted 1:1 to the underlying input HTML element.