5.0.0 • Published 11 months ago

ember-simplebar v5.0.0

Weekly downloads
963
License
MIT
Repository
github
Last release
11 months ago

ember-simplebar

A scrollbar component that wraps SimpleBar.

Compatibility

  • Ember.js v4.4 or above
  • Ember CLI v4.4 or above
  • Node.js v14 or above

Embroider

This addon is tested against embroider and can be used with the new embroider build system.

Installation

ember install ember-simplebar

Usage

<SimpleBar>
  ...
</SimpleBar>

All supported options of SimpleBar can be given as component arguments, e.g.:

<SimpleBar @autoHide={{true}} @timeout={{200}}>
  ...
</SimpleBar>

SimpleBar yields the current simplebar instance that can be used to e.g. recalculate:

<SimpleBar as |sb|>
  <object
    type='image/svg+xml'
    data='http://path/to/object.svg'
    {{on 'load' sb.recalculate}}
  ></object>
</SimpleBar>

Integration

To use it together with vertical-collection use the containerSelector option:

<SimpleBar>
  <VerticalCollection
    @items={{this.items}}
    @estimateHeight={{50}}
    @containerSelector='.simplebar-content-wrapper'
    as |item|
  >
    {{item}}
  </VerticalCollection>
</SimpleBar>

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

5.0.0

11 months ago

4.1.0

2 years ago

4.1.1

1 year ago

4.0.0

2 years ago

3.1.7

3 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.1

4 years ago

3.1.2

4 years ago

3.0.1

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago