Closed shbov closed 2 weeks ago
@shbov It's already implemented:
import {Printer} from '@gravity-ui/icons';
<Table getRowActions={() => [{text: 'Print', icon: <Icon data={Printer} size={12} />}]}/>
I've imporved Table example here: https://github.com/gravity-ui/landing/pull/211
@shbov It's already implemented:
import {Printer} from '@gravity-ui/icons'; <Table getRowActions={() => [{text: 'Print', icon: <Icon data={Printer} size={12} />}]}/>
I've imporved Table example here: gravity-ui/landing#211
Thanks! We also need to add prop icons to TableAction
as well here
Is it possible to add
icon?: Pick<IconProps, 'data' | 'size'>
prop in theTableAction
type and display them only if all actions are provided with icons? uikit already has anIconProps
interfaceIt would be nice to have action with icon in the
Table
component for better UX