Version: 5.xx.xx
Swizzle Ready
Boolean
This field is used to display boolean values. It uses the <Tooltip> values from Ant Design.
Good to know:
You can swizzle this component to customize it with the Refine CLI
Usage
Let's see how we can use <BooleanField> with the example in the post list:
localhost:3000/posts
API Reference
Properties
| Property | Type | Description | Default |
|---|---|---|---|
value ﹡ | | The value of the field. | |
title | | The text shown in the tooltip |
|
valueLabelTrue | | If there is a value, this is the text to use. | |
valueLabelFalse | | If there no value, this is the text to use. | |
trueIcon | | If there is a value, this is the icon to use. | |
falseIcon | | If there is no value, this is the icon to use. |
External Props:
This field also accepts all props of Ant Design's Tooltip component.