Skip to content

Custom Overrides for Basic Operators in MUI Formulas #24066

Open

Description

@kfrazier-slalom

The problem in depth

We're considering MUI formula adoption for data grids within the application and are wondering why the feature does not support overrides for basic operators, specifically +, -, /, *, and ^. We utilize Big.js to avoid floating point errors that occur when using plain JS, and have experimented with the custom functions feature. Our initial thought was the custom functions for ADD, SUBTRACT, etc.. would take the place of the basic operators but from the research we've done this does not seem to be the case.

What we are wondering now is if this was intentional, and if so why? And if there are any plans in the future to allow an override for basic operations to support calculation libraries like big.js or otherwise custom logic?

Your environment

`npx @mui/envinfo`
 System:
    OS: macOS 26.7.1
  Binaries:
    Node: 20.19.0 - /Users/keith.frazier/.nvm/versions/node/v20.19.0/bin/node
    npm: 10.8.2 - /Users/keith.frazier/.nvm/versions/node/v20.19.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 156.0.8078.76
    Edge: 149.0.4022.62
    Firefox: 152.0
    Safari: 26.6.2
  npmPackages:
    @base-ui/utils:  0.3.2
    @emotion/react:  11.11.1
    @emotion/styled:  11.11.0
    @mui/core-downloads-tracker:  9.2.0
    @mui/icons-material: ^9.2.0 => 9.2.0
    @mui/material: ^9.2.0 => 9.2.0
    @mui/private-theming:  9.2.0
    @mui/styled-engine:  9.1.1
    @mui/system: ^9.2.0 => 9.2.0
    @mui/types: ^9.1.1 => 9.1.1
    @mui/utils:  9.4.0
    @mui/x-data-grid:  9.14.0
    @mui/x-data-grid-premium:  9.13.0
    @mui/x-data-grid-pro: 9.9.0 => 9.13.0
    @mui/x-date-pickers: 9.9.0 => 9.13.0
    @mui/x-internal-exceljs-fork:  5.0.0
    @mui/x-internals:  9.14.0
    @mui/x-license: 9.9.0 => 9.13.0
    @mui/x-telemetry:  9.13.0
    @mui/x-virtualizer:  0.7.2
    @types/react: ^18.3.12 => 18.3.31
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: ^5.9.3 => 5.9.3

Search keywords: datagrid data-grid formulas operators bigjs

Order ID: 117882

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: data gridChanges related to the data grid.status: waiting for maintainerThese issues haven't been looked at yet by a maintainer.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions