Sha256: 8fc87adac578a6d87525663c16373d24e2cc4b1b16dff3e831745c9f46f6f13e
Contents?: true
Size: 1.34 KB
Versions: 17
Compression:
Stored size: 1.34 KB
Contents
<script type="text/ng-template" id="promethee/components/row"> <div ng-controller="RowController" class="row promethee-editor__component promethee-editor__component--row"> <div class="promethee-editor__toolbar"> Row <%= render 'promethee/partials/toolbar_buttons' %> </div> <div ng-show="editing" class="promethee-editor__wrapper"> </div> <ng-include src="'promethee/components/children'"></ng-include> <div class="clearfix"></div> <span class="btn btn-default btn-block" ng-click="addColumn()" style="margin: 0 6px 6px 6px;width: auto">Add column</span> </div> </script> <script type="text/ng-template" id="promethee/components/row/move"> <h1>Row</h1> <div class="row"> <ng-include src="'promethee/partials/mover'"></ng-include> </div> </script> <script> angular.injector(['ng', 'Promethee']).get('definitions').push({ name: 'Row', thumb: 'http://via.placeholder.com/300x200', data: { type: 'row', attributes: {}, children: [] } }); promethee.controller('RowController', ['$scope', function($scope) { $scope.allowedTypes = ['column']; $scope.addColumn = function() { this.component.children.push({ type: 'column', attributes: { size: 4, offset: 0 }, children: [] }) } }]); </script>
Version data entries
17 entries across 17 versions & 1 rubygems