File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,19 @@ composer require infinityloop-dev/lazy-component
34
34
- File extension is simply swapped to ` .latte ` .
35
35
- By default the FontAwesome 5 spinner is used as placeholder. Override ` EMPTY_TEMPLATE ` constant to use different empty template file.
36
36
37
- ### Example with tab and lazy tab content
37
+ ### Example lazy tab content
38
+
39
+ Tab header:
38
40
```
39
41
<li class"tab" data-load-component="{control myComponent:loadComponentLink}">Tab name</li>
40
42
```
43
+ Tab content:
41
44
```
42
45
<div class="tab-content">
43
46
{control myComponent}
44
47
</div>
45
48
```
49
+ JQuery ajax request on click:
46
50
```
47
51
$(".tab[data-load-component]").one('click',function (event) {
48
52
const link = $(this).data("load-component");
You can’t perform that action at this time.
0 commit comments