-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fix(docs,cli,scrolling): stick to specific scrollbar lib vers…
…ion (#DS-2899)" (#306)
- Loading branch information
Showing
23 changed files
with
249 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
Используется для настройки параметров скроллбара, таких как: | ||
|
||
- Минимальная высота/ширина ползунка | ||
- Задний фон ползунка | ||
- Поведение скролла при перемещении мыши вне области скроллбара. | ||
Используется для кастомизации скроллбара. | ||
|
||
На данный момент возможно применять к простым элементам за исключением textarea. | ||
|
||
Чтобы компонент работал правильно, установите библиотеку `overlayscrollbars` с версией `2.7.3`. | ||
Если ее ещё нет в вашем списке зависимостей, убедитесь, что вы устанавливаете её следующей командой: | ||
|
||
``` | ||
npm install [email protected] | ||
``` | ||
|
||
<!-- example(scrollbar-overview) --> | ||
|
||
## Настройка поведения скроллбаров | ||
|
||
Вы можете задать параметры для скроллбаров двумя способами: | ||
### Кастомизация | ||
|
||
**Настройка одного скроллбара:** Если вам нужно изменить настройки только для одного скроллбара, используйте `options` параметр. | ||
1. Доступно установка кастомные поведения скролла: | ||
- Для отдельного скролла через `@Input() options` | ||
- Для всех скроллбаров в определенной области через токен `KBQ_SCROLLBAR_CONFIG` | ||
2. Доступна кастомизация цветов и геометрии элементов скроллбара: | ||
- Минимальная высота/ширина ползунка | ||
- Задний фон ползунка | ||
|
||
<!-- example(scrollbar-input-customization) --> | ||
|
||
**Настройка всех скроллбаров:** если вы хотите изменить настройки для всех скроллбаров в модуле, используйте токен `KBQ_SCROLLBAR_CONFIG`. | ||
|
||
<!-- example(scrollbar-module-customization) --> | ||
Доступно прослушивание нативного событие scroll. | ||
|
||
### Возможности | ||
<!-- example(scrollbar-overview) --> | ||
|
||
Доступно прослушивание нативного событие scroll. | ||
### Scroll to top | ||
|
||
<!-- example(scrollbar-scroll-to-top) --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
...mponents/scrollbar/scrollbar-input-customization/scrollbar-input-customization-example.ts
This file was deleted.
Oops, something went wrong.
64 changes: 0 additions & 64 deletions
64
...onents/scrollbar/scrollbar-module-customization/scrollbar-module-customization-example.ts
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ages/docs-examples/components/scrollbar/scrollbar-overview/scrollbar-overview-example.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/** No CSS for this example */ |
Oops, something went wrong.