
META-INF.resources.butterfaces-dist-js.butterfaces-expandable.jquery.min.js Maven / Gradle / Ivy
The newest version!
var ButterFaces,__extends=this&&this.__extends||function(){var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();!function(n){n.fn.butterExpandable=function(){return this.each(function(t,e){e=n(e);new(0").addClass("butter-component-expandable-readonly-container").insertAfter(t),t=$("").addClass("input-group-text glyphicon glyphicon-resize-full");this.originalElement.appendTo(n),$("").addClass("butter-component-expandable-readonly-icon").append(t).appendTo(n)},s.prototype.createGhostElement=function(){return $("")},s.prototype.isExpansionEventIgnored=function(t){return!1},s.prototype.onGhostElementCreated=function(){},s.prototype.onGhostElementCollapsed=function(t){},s.prototype.transferValueToGhostElement=function(){$("").html(this.originalElement.html()).addClass("butter-component-expandable-ghost-readonlyContent").appendTo(this.ghostElement)},s);function s(t){t=o.call(this,t)||this;return t.originalElement=t.rootElement.find(".butter-component-value-readonly"),t.rearrangeOriginalElementStructure(),t}t.DivExpandable=l;var a,e=(__extends(r,a=e),r.prototype.addInputGroupAddon=function(){this.originalElement.addClass("form-control").parent().addClass("input-group"),$('').insertAfter(this.originalElement)},r.prototype.handleBlurEvent=function(t){this.blockBlurEventOnOriginal&&t.preventDefault()},r.prototype.createGhostElement=function(){return $("
© 2015 - 2025 Weber Informatics LLC | Privacy Policy