使用自定义SVG React覆盖AgGrid行复选框

时间:2020-06-03 23:36:37

标签: css svg ag-grid ag-grid-react

我具有以下样式来覆盖AGgrid复选框,但是我需要使用SVG覆盖图标。它是如何工作的,我正在尝试类似的方法。 https://www.ag-grid.com/javascript-grid-styling/

建议将其应用于div主题
      '& .ag-checkbox-input-wrapper:after': {
        content: `url("data:image/svg+xml; utf8, ` + logo + `") !important`,
        top: '1px !important',
        right: '1px !important',
        bottom: '1px !important',
        left: '1px !important',
        opacity: 1,
        borderRadius: '50%',
        background: 'white !important',
        color: 'blue !important'
      },

0 个答案:

没有答案