basic-sliding-viewport
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "basic-sliding-viewport", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Presents list items in a viewport such that only a single item is visible at a time. Navigating between items will be represented with a horizontal visual sliding effect.", | ||
@@ -15,4 +15,4 @@ "homepage": "https://component.kitchen", | ||
"dependencies": { | ||
"basic-element-base": "^0.7.3", | ||
"basic-spread-items": "^0.7.3" | ||
"basic-element-base": "^0.7.4", | ||
"basic-spread-items": "^0.7.4" | ||
}, | ||
@@ -19,0 +19,0 @@ "browserify": { |
<a name="SlidingViewport"></a> | ||
## SlidingViewport | ||
## SlidingViewport ⇐ <code>ElementBase</code> | ||
Presents list items in a viewport such that only a single item is visible at | ||
@@ -15,2 +15,3 @@ a time. | ||
**Kind**: global class | ||
**Extends:** <code>ElementBase</code> | ||
<a name="SlidingViewport+position"></a> | ||
@@ -17,0 +18,0 @@ ### slidingViewport.position : <code>number</code> |
import ElementBase from '../../basic-element-base/src/ElementBase'; | ||
import SpreadItems from '../../basic-spread-items/src/SpreadItems'; // jshint ignore:line | ||
import toggleClass from '../../basic-component-mixins/src/toggleClass'; | ||
let base = ElementBase; | ||
@@ -17,2 +19,4 @@ | ||
* This component currently requires that you explicitly apply a size to it. | ||
* | ||
* @extends ElementBase | ||
*/ | ||
@@ -89,8 +93,3 @@ class SlidingViewport extends base { | ||
if (super.showTransition) { super.showTransition(show); } | ||
// Would like to use classList.toggle() here, but IE 11 doesn't have it. | ||
if (show) { | ||
this.classList.add('showTransition'); | ||
} else { | ||
this.classList.remove('showTransition'); | ||
} | ||
toggleClass(this, 'showTransition', show); | ||
} | ||
@@ -97,0 +96,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
134378
1551
27
Updatedbasic-element-base@^0.7.4
Updatedbasic-spread-items@^0.7.4