PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
modules
define(['module/base'],function(base) { return createModuleDefinition([base], function($window,$file_manager) { this.initializeData = { title:'Price Plan ', sub_title:'Sub title', features:['Feature 1','Feature 2','Feature 3','Feature 4'], price_text:'$100', price_sub_text:"Per month", button_text:'More Information' }; this.subModules = [{type:'button',uniqueName:'button',selector:'.cta_button'}]; this.controller = function($scope, $moduleInstance) { $scope.changeTitle = function() { var title = $moduleInstance.getElement().find('.info_title'); title.children('h3').html($scope.data.title); } $scope.changeSubTitle = function() { var title = $moduleInstance.getElement().find('.info_title'); title.children('h5').html($scope.data.sub_title); } $scope.changePrice = function() { var body = $moduleInstance.getElement().find('.price-table-body-inner'); body.children('.price-table-figure').html($scope.data.price_text); body.children('.price-table-term').html($scope.data.price_sub_text); } $scope.data.feature_text = ''; if($scope.data.features != undefined) { for(var i in $scope.data.features) { if(!$scope.data.features.hasOwnProperty(i)) continue; $scope.data.feature_text+=$scope.data.features[i] + "\n"; } } $scope.changeFeature = function() { var features = $scope.data.feature_text.split("\n"); var table_features = $moduleInstance.getElement().find('.price-table-features'); var ul = table_features.children('ul'); ul.html(''); for(var i in features) { if(!features.hasOwnProperty(i)) continue; ul.append('<li>' + features[i] + '</li>'); } $scope.data.features = features; } $scope.changeAlign = function() { $moduleInstance.getElement().children(".info_box").attr('class', 'info_box info_box_' + $scope.data.align); } $scope.changeButton = function() { $moduleInstance.getElement().find('.button_text').html($scope.data.button_text); $moduleInstance.getElement().find('a.button').attr('href', $scope.data.button_link); } }; }) });
[+]
..
[-] productlist.js
[edit]
[-] facebookvideo.js
[edit]
[-] newslist.js
[edit]
[-] image.js
[edit]
[-] video.js
[edit]
[-] button.js
[edit]
[-] zone.js
[edit]
[-] text.js
[edit]
[-] newscategory.js
[edit]
[-] googlemap.js
[edit]
[-] base_structure.js
[edit]
[-] contactform.js
[edit]
[-] spacer.js
[edit]
[-] infobox.js
[edit]
[-] html.js
[edit]
[-] testmodule.js
[edit]
[-] facebookcomment.js
[edit]
[-] iframe.js
[edit]
[-] twitterfeed.js
[edit]
[-] recentnews.js
[edit]
[-] audio_player.js
[edit]
[-] slick.js
[edit]
[-] newsdetail.js
[edit]
[-] facebookpost.js
[edit]
[-] pagezone.js
[edit]
[-] panigation.js
[edit]
[-] row.js
[edit]
[-] __custom_module_template.js
[edit]
[-] carousel.js
[edit]
[-] icon.js
[edit]
[-] typedtext.js
[edit]
[-] newscomment.js
[edit]
[-] box.js
[edit]
[-] base_custom.js
[edit]
[-] wordpress.js
[edit]
[-] base.js
[edit]
[-] column.js
[edit]
[-] fancytext.js
[edit]
[-] recentproduct.js
[edit]
[-] statcounter.js
[edit]
[-] tab.js
[edit]
[-] bootstrap_slider.js
[edit]
[-] ihover.js
[edit]
[-] line.js
[edit]
[-] blogger.js
[edit]
[-] slideshow.js
[edit]
[-] title.js
[edit]
[-] facebookpage.js
[edit]
[-] share_buttons.js
[edit]
[-] facebooklike.js
[edit]
[-] infobanner.js
[edit]
[-] rssfeed.js
[edit]
[-] flash.js
[edit]
[-] countdown.js
[edit]
[-] facebooksend.js
[edit]
[-] mailchimp.js
[edit]
[-] infotable.js
[edit]
[-] navbar.js
[edit]
[-] cycleslider.js
[edit]
[-] modal.js
[edit]
[-] embed.js
[edit]
[-] alert.js
[edit]
[-] progress_bar.js
[edit]
[-] accordion.js
[edit]
[-] youtube.js
[edit]
[-] social_buttons.js
[edit]
[-] productcategory.js
[edit]
[-] menu.js
[edit]
[-] pricetable.js
[edit]
[-] productdetail.js
[edit]
[-] gallery.js
[edit]