-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathFittableColumns.js
54 lines (48 loc) · 1.32 KB
/
FittableColumns.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Contains the declaration for the {@link module:layout/FittableColumns~FittableColumns} kind.
* @module layout/FittableColumns
*/
var
kind = require('enyo/kind');
var
FittableLayout = require('./FittableLayout'),
FittableColumnsLayout = FittableLayout.Columns;
/**
* {@link module:layout/FittableColumns~FittableColumns} provides a container in which items are laid out in a
* set of vertical columns, with most items having natural size, but one
* expanding to fill the remaining space. The one that expands is labeled with
* the attribute `fit: true`.
*
* For more information, see the documentation on
* [Fittables]{@linkplain $dev-guide/building-apps/layout/fittables.html} in the
* Enyo Developer Guide.
*
* @class FittableColumns
* @extends module:enyo/Control~Control
* @ui
* @public
*/
module.exports = kind(/** @lends module:layout/FittableColumns~FittableColumns.prototype */ {
/**
* @private
*/
name: 'enyo.FittableColumns',
/**
* A {@glossary kind} used to manage the size and placement of child
* [components]{@link module:enyo/Component~Component}.
*
* @type {String}
* @default ''
* @private
*/
layoutKind: FittableColumnsLayout,
/**
* By default, items in columns stretch to fit vertically; set to `true` to
* avoid this behavior.
*
* @type {Boolean}
* @default false
* @public
*/
noStretch: false
});