Sha256: 371c51756c864af4dc615173c570e4d65852f7cbeca98506ca84d4e7c0b4a742
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
<script type="text/ng-template" id="promethee/write/component/row"> <div ng-controller="RowController" class="row promethee-editor__component promethee-editor__component--row"> <div class="promethee-editor__toolbar"> Row <ng-include src="'promethee/write/toolbar'"></ng-include> </div> <div ng-show="editing" class="promethee-editor__wrapper"> </div> <ng-include src="'promethee/write/components'"></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> 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
promethee-1.0.15 | app/views/promethee/edit/write/component/_row.html.erb |
promethee-1.0.14 | app/views/promethee/edit/write/component/_row.html.erb |