PATH:
home
/
letacommog
/
letaweb
/
admin
/
modules
/
title
define(['module/base'],function(base) { return createModuleDefinition([base], function($window) { this.initializeData = { text:'Button',link:'#',size:"h1" }; this.controller = function($scope, $moduleInstance) { $scope.changeText = function() { var text = $moduleInstance.getElement().children(); text.html($scope.data.text); } $scope.changeSize = function() { var text = $moduleInstance.getElement().children(); text.replaceWith($('<'+$scope.data.size+'>' + $scope.data.text + '</'+$scope.data.size+'>')); $scope.changeAlign(); } $scope.changeAlign = function() { if($scope.data.align==undefined) return; var text = $moduleInstance.getElement().children(); var a = ['left','right','center']; for(var i =0;i < a.length;i++) text.removeClass('text-'+a[i]); text.addClass('text-'+$scope.data.align); } }; }) });
[+]
..
[-] frontend_view.php
[edit]
[-] backend.js
[edit]
[-] frontend_class.php
[edit]
[-] backend.php
[edit]