forked from ibm-js/deliteful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScrollableContainer.js
33 lines (31 loc) · 974 Bytes
/
ScrollableContainer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/** @module deliteful/ScrollableContainer */
define([
"delite/register",
"delite/Container",
"delite/Scrollable"
], function (register, Container, Scrollable) {
/**
* A container widget with scrolling capabilities.
*
* This widget can scroll its contents horizontally and/or vertically.
* Its scrolling capabilities and API are provided by its parent class
* `delite/Scrollable`.
* @example
* <d-scrollable-container scrollDirection="horizontal">
* <div>...</div>
* <div>...</div>
* </d-scrollable-container>
* @class module:deliteful/ScrollableContainer
* @augments module:delite/Container
* @augments module:delite/Scrollable
*/
return register("d-scrollable-container", [HTMLElement, Container, Scrollable],
/** @lends module:deliteful/ScrollableContainer# */{
/**
* The name of the CSS class of this widget.
* @member {string}
* @default "d-scrollable-container"
*/
baseClass: "d-scrollable-container"
});
});