Код: Выделить всё
import { h } from 'vue'
import {
XIcon
} from 'lucide-vue-next'
import { AgGridVue } from 'ag-grid-vue3'
import {
AllCommunityModule,
ModuleRegistry
} from 'ag-grid-community'
ModuleRegistry.registerModules([AllCommunityModule])
const icons = {
filter: () => h(XIcon)
}
const colDefs = [
{
field: 'symbol'
},
{
field: 'currency'
},
{
field: 'quantity'
}
]
const rowData = [
{ symbol: 'AAPL', currency: 'USD', quantity: 10 },
{ symbol: 'GOOGL', currency: 'USD', quantity: 5 },
{ symbol: 'AMZN', currency: 'USD', quantity: 2 }
]
Подробнее здесь: https://stackoverflow.com/questions/797 ... grid-icons