Skip to content

Commit 56bc92d

Browse files
authored
tabs lazy_load (#340)
* tabs `lazy_load` * /n potatoes
1 parent 1928a33 commit 56bc92d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/3.0/tabs.md

+16
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,19 @@ end
143143
```
144144

145145
</Option>
146+
147+
<Option name="`lazy_load`">
148+
149+
<VersionReq version="3.17.0" />
150+
151+
The `lazy_load` option enables deferred loading of tab content, improving performance by fetching data only when the tab is clicked. By default, `lazy_load` is set to `false`, ensuring that all tabs load immediately. However, in form views, this option is automatically disabled to prevent data loss during form submission.
152+
153+
```ruby{2}
154+
tabs do
155+
tab "Address", lazy_load: true do
156+
# ...
157+
end
158+
end
159+
```
160+
161+
</Option>

0 commit comments

Comments
 (0)