Skip to content

Commit

Permalink
Simplified the code and small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Nov 7, 2017
1 parent 6f0e6e8 commit e65d8e5
Show file tree
Hide file tree
Showing 16 changed files with 7,635 additions and 252 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The scroll area always needs some fixed height to work. The default styles uses
Simply replace the element that would ordinarily be passed to `PerfectScrollbar` with the perfect-scollbar component.

```html
<perfect-scrollbar [config]="config">
<perfect-scrollbar style="max-width: 600px; max-height: 400px;" [config]="config">
<div>Scrollable content</div>
</perfect-scrollbar>
```
Expand Down Expand Up @@ -104,7 +104,7 @@ When using only the directive you need to provide your own theming or import the
Perfect scrollbar directive should be used with div elements and can take optional custom configuration:

```html
<div class="ps" [perfectScrollbar]="config">
<div class="ps" style="position: relative; max-width: 600px; max-height: 400px;" [perfectScrollbar]="config">
<div>Scrollable content</dib>
</div>
```
Expand All @@ -114,8 +114,6 @@ Perfect scrollbar directive should be used with div elements and can take option

[disabled] // Disables the perfect scrollbar initialization.

[psPosStyle] // Position style (controls scrollbar placement).

(<ps-event-name>) // All perfect scrollbar events work as bindings.
```

Expand Down
Loading

0 comments on commit e65d8e5

Please sign in to comment.