@@ -24,6 +24,13 @@ class Card extends Base {
24
24
* @static
25
25
*/
26
26
static itemCls = 'neo-layout-card-item'
27
+ /**
28
+ * Valid values for slideDirection
29
+ * @member {String[]} iconPositions=['horizontal','vertical',null]
30
+ * @protected
31
+ * @static
32
+ */
33
+ static slideDirections = [ 'horizontal' , 'vertical' , null ]
27
34
28
35
static config = {
29
36
/**
@@ -47,7 +54,12 @@ class Card extends Base {
47
54
* This will keep the instances & vdom trees
48
55
* @member {Boolean} removeInactiveCards=true
49
56
*/
50
- removeInactiveCards : true
57
+ removeInactiveCards : true ,
58
+ /*
59
+ * Valid values: 'horizontal', 'vertical', null
60
+ * @member {String|null} slideDirection_=null
61
+ */
62
+ slideDirection_ : null
51
63
}
52
64
53
65
/**
@@ -164,6 +176,17 @@ class Card extends Base {
164
176
container . wrapperCls = wrapperCls ;
165
177
}
166
178
179
+ /**
180
+ * Triggered before the slideDirection config gets changed
181
+ * @param {String } value
182
+ * @param {String } oldValue
183
+ * @returns {String }
184
+ * @protected
185
+ */
186
+ beforeSetSlideDirection ( value , oldValue ) {
187
+ return this . beforeSetEnumValue ( value , oldValue , 'slideDirection' )
188
+ }
189
+
167
190
/**
168
191
* Loads a component.Base module which is defined via module: () => import('...')
169
192
* @param {Object } item
0 commit comments