0.0.3 • Published 12 years ago
dcl-bootstrap-attributes v0.0.3
dcl-bootstrap-attributes
Mixins for Twitter Bootstrap common classes to be used with dcl-widget.
Installation
npm install dcl-bootstrap-attributesUsage
Let's say we want to define a widget class that should able to work as Bootstrap grid element.
var BSAttrs = require('dcl-bootstrap-attributes');
var Widget = require('dcl-widget');
var MyWidget = Widget
.extend(BSAttrs.grid)
.extend({
/*your widget definition*/
});Summing it up, we need call .extend() for each mixin we want to use.
Available mixins
grid
Adds the following attributes:
- Columns size
colExtraSmallcolSmallcolMediumcolLarge
- Columns ordering
colExtraSmallPushcolSmallPushcolMediumPushcolLargePushcolExtraSmallPullcolSmallPullcolMediumPullcolLargePull
- Columns offsetting
offsetExtraSmalloffsetSmalloffsetMediumoffsetLarge
- Responsive utilities
visibleExtraSmallvisibleSmallvisibleMediumvisibleLargehiddenExtraSmallhiddenSmallhiddenMediumhiddenLarge
row
utils
Adds the following attributes:
hiddenclearfix