有人知道如何通过输入向AgGrid添加多个行吗?
我有一个弹出输入,在这里我可以输入我想要添加的行数。我使用console.log从输入中获取数字。
form.js
import * as React from 'react';
import Button from '@mui/material/Button';
import TextField from '@mui/material/TextField';
import Dialog from '@mui/material/Dialog';
import DialogActio
我使用的是AgGrid w/服务器端行模型。我希望状态栏显示行数。由于内置行计数组件仅适用于客户端行模型,因此我编写了一个自定义组件(参见下面)。
下面的状态栏组件在加载时工作。但是,有时ag-grid将无法加载组件,而是会在控制台中显示以下错误:
index.js:1350 AG Grid: React Component 'TotalRowCountComponent' not created within 1000ms
由于组件的重量非常轻,并且应该快速呈现,所以我认为这是AgGrid库的一个问题。我现在使用的是27版。
如果有人知道如何绕过这个问题,请提出建议。我非常想
下面是我的应用程序在ReactJS组件中呈现的行,并保存为nav.jsx。
<span style="font-family: 'Open Sans', sans-serif;"> Home</span>
例外:
Uncaught Error: The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}}