Skip to content

Commit

Permalink
Add group tabs description (#86)
Browse files Browse the repository at this point in the history
* Add group tabs description

* Edit link in syntax/index

* Fix error
  • Loading branch information
VitalRu authored Feb 13, 2025
1 parent b67c8e0 commit b4fd1ab
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ru/syntax/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* [списки](./lists.md);
* [простые](./tables/gfm.md) и [многострочные таблицы](./tables/multiline.md);
* [заметки](./notes.md);
* [каты, табы и радиобаттоны](./index.md);
* [каты, табы и радиобаттоны](./interactive-elements/index.md);
* [ссылки](./links.md);
* [медиа](./media.md);
* [фрагменты кода](./code.md);
Expand Down
102 changes: 101 additions & 1 deletion ru/syntax/interactive-elements/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,104 @@

Текст таба 3.

{% endlist %}
{% endlist %}


## Синхронизация

Чтобы одновременно переключать единообразные вкладки в пределах одной страницы, примените атрибут `group`:

```markdown
{% list tabs group=instructions %}

- Python

About python

- Tab with list
- One
- Two

- Tab with list
1. One
2. Two

- Next

hello world

{% endlist %}



{% list tabs group=instructions %}

- Python

About python

- Tab with list
- One
- Two

- Tab with list
1. One
2. Two

- Next

hello world 2


{% endlist %}
```

**Результат:**

{% list tabs group=instructions %}

- Python

About python

- Tab with list
- One
- Two


- Tab with list

1. One
2. Two


- Next

hello world

{% endlist %}



{% list tabs group=instructions %}

- Python

About python

- Tab with list
- One
- Two


- Tab with list

1. One
2. Two


- Next

hello world 2

{% endlist %}

0 comments on commit b4fd1ab

Please sign in to comment.