Created Packery and Draggabilly directives.

Applied the Packery directive to Info layout based on media queries.
This commit is contained in:
Gunther Brunner
2014-05-26 21:05:54 +09:00
parent 7a87f2170a
commit 00eb155ab9
12 changed files with 201 additions and 16 deletions

View File

@@ -0,0 +1,16 @@
module.exports = function angularDraggabillyDirective(DraggabillyService) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {
var parsedAttrs = $parse(attrs.angularDraggabilly)()
if (typeof parsedAttrs !== 'object') {
parsedAttrs = {}
}
var options = angular.extend({
}, parsedAttrs)
var draggie = new DraggabillyService(element[0], options)
}
}
}