首页 > 解决方案 > 使用自定义 SVG React 覆盖 AgGrid 行复选框

问题描述

我有以下样式来覆盖 AGgrid 复选框,但我需要它用 SVG 覆盖图标。它是如何工作的,我正在尝试这样的事情。将其应用于此处建议的 div 主题https://www.ag-grid.com/javascript-grid-styling/

      '& .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'
      },

标签: csssvgag-gridag-grid-react

解决方案


推荐阅读