Glide Data Grid
  • 👋Welcome to Glide Data Grid
  • 🚀Extended QuickStart Guide
    • ✏️Editing Data
    • 🖱️Working with selections
    • 🔨Grid Columns
    • 📎Copy and paste support
  • 📒FAQ
  • 📚API
    • DataEditor
      • Required Props
      • Important Props
      • Row Markers
      • Editing
      • Input Interaction
      • Selection Handling
      • Custom Cells
      • Drag and Drop
      • Search
      • Styling
    • DataEditorCore
    • Cells
      • BaseGridCell
      • TextCell
      • BooleanCell
      • NumberCell
      • UriCell
      • ProtectedCell
      • RowIDCell
      • LoadingCell
      • ImageCell
      • MarkdownCell
      • BubbleCell
      • DrilldownCell
    • Common Types
    • DataEditorRef
  • Guides
    • Implementing Custom Cells
Powered by GitBook
On this page
  • displayData
  • data
  • readonly
  • fixedDecimals
  • allowNegative
  • thousandsSeparator
  • decimalSeparator

Was this helpful?

  1. API
  2. Cells

NumberCell

The number cell renders numbers and has a specialized editor for inputing numerical values.

export interface NumberCell extends BaseGridCell {
    readonly kind: GridCellKind.Number;
    readonly displayData: string;
    readonly data: number | undefined;
    readonly readonly?: boolean;
    readonly fixedDecimals?: number;
    readonly allowNegative?: boolean;
    readonly thousandSeparator?: boolean | string;
    readonly decimalSeparator?: string;
}

displayData

A formated version of the number as a string.

data

The number value of the cell

readonly

Determines if the cell will accept edit events.

fixedDecimals

When provided, fixes the number of decimals used in the overlay editor to the number provided.

allowNegative

When set to false negative numbers are not allowed to be entered.

thousandsSeparator

Allows overiding or disabling of the thousands separator. False disables, true enables, and a string overrides it.

decimalSeparator

Allows overiding the decimal separator, normally passing either "," or "."

PreviousBooleanCellNextUriCell

Last updated 1 year ago

Was this helpful?

📚