Sha256: 7411d1c718c0362bbd10e4c11267e935c1ffaf728f5abbfe020e7372d18aeffa
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
<script type="text/ng-template" id="promethee/write/component/row"> <div ng-controller="RowController" ng-click="inspect(component, $event)" class="row promethee-editor__component promethee-editor__component--row" > <div class="promethee-editor__component-selected" ng-class="{'promethee-editor__component-selected--visible': promethee.inspected === component}"> <div class="promethee-editor__toolbar"> Row <ng-include src="'promethee/write/toolbar'"></ng-include> </div> <ng-include src="'promethee/write/components'"></ng-include> <div class="clearfix"></div> <a ng-click="addColumn()" class="promethee-editor__adder__button"><%= fa_icon :columns, class: "fa-2x" %></a> </div> </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.addColumn = function() { this.component.children.push({ type: 'column', attributes: { size: 4, offset: 0 }, children: [] }) } }]); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
promethee-1.1.0 | app/views/promethee/edit/write/component/_row.html.erb |