Sha256: 6c5efdf61b01c2f150dfa5589e56f046ac573bdda6a3fd627d39bd7a85e214fc
Contents?: true
Size: 1.53 KB
Versions: 3
Compression:
Stored size: 1.53 KB
Contents
<script type="text/ng-template" id="promethee/components/slider/edit/write"> <div ng-controller="SliderController" ng-click="inspect(component, $event)" class=" row promethee-edit__component promethee-edit__component--slider"> <div class="promethee-edit__component-selected" ng-class="{'promethee-edit__component-selected--visible': promethee.inspected === component}"> <div class="promethee-edit__toolbar"> Slider <ng-include src="'promethee/write/toolbar'"></ng-include> </div> <div class="row"> <div ng-init="components = component.children"> <div ng-repeat="component in components track by $index"> <div class="col-md-{{itemColSize}}"> <ng-include src="'promethee/write/component'"></ng-include> </div> <div ng-if="($index + 1)%itemsPerLine === 0" class="clearfix"></div> </div> </div> </div> <div class="clearfix"></div> <span type="button" class=" btn btn-default btn-block" ng-click="addComponentTo(component.children);"> Add item </span> </div> </div> </script> <script> promethee.controller('SliderController', ['$scope', '$element', function($scope, $element) { $scope.itemsPerLine = 4; Object.defineProperties($scope, { itemColSize: { get: function() { return Math.floor(12/$scope.itemsPerLine); } } }); }]); </script>
Version data entries
3 entries across 3 versions & 1 rubygems