ColumnBreak_wev8.js
866 Bytes
define("ColumnBreak_html",function(){return'<div id="NMEC_${id}" class="wev-comp-${compType}"> <div class="css-${align}" style="font-size:${fontSize};color:${color};font-weight:${fontWeight}">$${content}</div> {@if btn.enabled}\t\t<div class="nav-btn">$${btn.text}</div>\t{@/if}</div>'}),define(["mUtil","Component"],function(o,i){return i.init(function(t){i.super(this,t),this.type="ColumnBreak",this.tpl=this.type+"_html",this.css=this.type+"_css";var e=this.viewModel={content:"",color:"#333",fontWeight:"normal",fontSize:14,align:"left",btn:{enabled:!1,text:"",click:function(){}}};this.beforeMount=function(){e.fontSize=(parseFloat(e.fontSize)||14)+"px"},this.mounted=function(){var t=this,i=this.$el.children(".wev-comp-"+this.type),n=i.children("div").height();36<n&&i.height(n),$(".nav-btn",i).on("click",function(){o.eval(e.btn.click,t.pageid)})}})});