dnet45/modules/uoa-repository-dashboard-gui/trunk/src/public/js/core/grid.js @ 46812
1 |
import { Class } from '../mixin/index'; |
---|---|
2 |
|
3 |
export default function (UIkit) { |
4 |
|
5 |
UIkit.component('grid', UIkit.components.margin.extend({ |
6 |
|
7 |
mixins: [Class], |
8 |
|
9 |
name: 'grid', |
10 |
|
11 |
defaults: { |
12 |
margin: 'uk-grid-margin', |
13 |
clsStack: 'uk-grid-stack' |
14 |
},
|
15 |
|
16 |
update: { |
17 |
|
18 |
write() { |
19 |
|
20 |
this.$el.toggleClass(this.clsStack, this.stacks); |
21 |
|
22 |
},
|
23 |
|
24 |
events: ['load', 'resize'] |
25 |
|
26 |
}
|
27 |
|
28 |
}));
|
29 |
|
30 |
}
|