diff --git a/addon/components/o-s-s/scrollable-panel.hbs b/addon/components/o-s-s/scrollable-panel.hbs index 00f737f8b..e435e1591 100644 --- a/addon/components/o-s-s/scrollable-panel.hbs +++ b/addon/components/o-s-s/scrollable-panel.hbs @@ -15,9 +15,15 @@ {{on-bottom-reached this.onBottomReached}} {{did-insert this.initScrollListener}} > + {{#if (and @displayScrollArrows this.shadowLeftVisible)}} + + {{/if}}
{{yield}}
+ {{#if (and @displayScrollArrows this.shadowRightVisible)}} + + {{/if}} {{#if (and this.shadowBottomVisible (not @disableShadows))}}
@@ -25,4 +31,5 @@ {{#if (and this.shadowRightVisible (not @disableShadows))}}
{{/if}} + \ No newline at end of file diff --git a/addon/components/o-s-s/scrollable-panel.ts b/addon/components/o-s-s/scrollable-panel.ts index 7dd2187e3..1d1655ff3 100644 --- a/addon/components/o-s-s/scrollable-panel.ts +++ b/addon/components/o-s-s/scrollable-panel.ts @@ -8,6 +8,7 @@ interface OSSScrollablePanelComponentSignature { horizontal?: boolean; hideScrollbar?: boolean; offset?: number; + displayScrollArrows?: boolean; onBottomReached?: () => void; } @@ -19,6 +20,7 @@ export default class OSSScrollablePanelComponent extends Component 0) { this.shadowTopVisible = true; @@ -98,7 +117,7 @@ export default class OSSScrollablePanelComponent extends Component
-
+ {{!--
{{#each this.loop}} @@ -82,17 +82,20 @@ {{/each}}
-
+
--}}
- +
- {{#each this.loop}} - + {{#each this.loop as |item index|}} + {{!-- --}} + {{/each}}
+ + loop count: {{this.loop.length}}