AllenFang / AllenFang/react-bootstrap-table
return popover element on dataFormat
- Linguagem predominante
- JavaScript
- Estrelas
- 2.2k
- Forks
- 761
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I am trying to return popover using an overlay within `dataFormat` option and it does not seem to work.
```
serviceFormatter(cell, row) {
let exemptionType = 'CM';
if( (row.comms_matrix_id == null || row.comms_matrix_id == '0' ) && (row.service_id == null || row.service_id == 'All' || row.service_id == '0')){
exemptionType = 'Global';
}else if( (row.comms_matrix_id == null || row.comms_matrix_id == '0') && (row.service_id != null || row.service_id != 'All' || row.service_id != '0' )){
exemptionType = 'Service';
}
let exemptionTypeText = row.service + `${exemptionType}`;
if(cell && cell.length> 0){
exemptionTypeText = row.service + `${exemptionType}`;
}
let popover = {exemptionType} exemption
return (
);
}
```
the error i get is
`Uncaught Error: React.Children.only expected to receive a single React element child.`
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.