All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.Table.components.selection.radio.tsx Maven / Gradle / Ivy

The newest version!
import React, { useCallback, VFC } from 'react'
import { InputRadio } from '@i-novus/n2o-components/lib/inputs/Radio'

import { RadioCellProps } from '../../types/props'
import { useTableActions } from '../../provider/TableActions'

export const RadioCell: VFC = ({ rowValue, isSelectedRow }) => {
    const { selectSingleRow } = useTableActions()

    const onSelect = useCallback(() => {
        selectSingleRow(rowValue)
    }, [rowValue, selectSingleRow])

    return (
        
event.stopPropagation()}>
) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy