Skip to content

Commit 809d360

Browse files
icaroryanPaul-Bob
andauthored
Document nil_as_indeterminate option for boolean field (#466)
* Document nil_as_indeterminate option for boolean field * add version_req for 3.0 & add docs for 4.0 --------- Co-authored-by: Paul Bob <paul.ionut.bob@gmail.com>
1 parent 74ff1e1 commit 809d360

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

docs/3.0/fields/boolean.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ What should count as false. You can use `0`, `no`, or a different value.
3737
`[false, "false", "0"]`
3838
</Option>
3939

40+
<Option name="`nil_as_indeterminate`">
41+
42+
<VersionReq version="3.28.0" />
43+
44+
When `true`, `nil` values render as a gray minus-circle icon on **Show** and **Index** views instead of the default dash. This keeps the `nil` value intact while making it more visible.
45+
46+
<Image src="/assets/img/fields/boolean_nil_as_indeterminate.png" width="265" height="200" alt="nil_as_indeterminate option" />
47+
48+
#### Default value
49+
50+
`false`
51+
</Option>
52+
4053
<Option name="`as_toggle`">
4154

4255
<VersionReq version="3.24.1" />

docs/4.0/fields/boolean.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ What should count as false. You can use `0`, `no`, or a different value.
3737
`[false, "false", "0"]`
3838
</Option>
3939

40+
<Option name="`nil_as_indeterminate`">
41+
42+
When `true`, `nil` values render as a gray minus-circle icon on **Show** and **Index** views instead of the default dash. This keeps the `nil` value intact while making it more visible.
43+
44+
<Image src="/assets/img/fields/boolean_nil_as_indeterminate.png" width="265" height="200" alt="nil_as_indeterminate option" />
45+
46+
#### Default value
47+
48+
`false`
49+
</Option>
50+
4051
<Option name="`as_toggle`">
4152

4253
Render the field as a toggle on the form views.
7.26 KB
Loading

0 commit comments

Comments
 (0)