All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-js.butterfaces-expandable.jquery.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show 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)e.hasOwnProperty(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(i){i.fn.butterExpandable=function(){return this.each(function(t,e){var n=i(e);0").addClass("butter-component-expandable-readonly-container").insertAfter(t),i=$("").addClass("input-group-text glyphicon glyphicon-resize-full");this.originalElement.appendTo(n),$("
").addClass("butter-component-expandable-readonly-icon").append(i).appendTo(n)},a.prototype.createGhostElement=function(){return $("
")},a.prototype.isExpansionEventIgnored=function(t){return!1},a.prototype.onGhostElementCreated=function(){},a.prototype.onGhostElementCollapsed=function(t){},a.prototype.transferValueToGhostElement=function(){$("
").html(this.originalElement.html()).addClass("butter-component-expandable-ghost-readonlyContent").appendTo(this.ghostElement)},a);function a(t){var e=o.call(this,t)||this;return e.originalElement=e.rootElement.find(".butter-component-value-readonly"),e.rearrangeOriginalElementStructure(),e}t.DivExpandable=l;var s,r=(__extends(h,s=e),h.prototype.addInputGroupAddon=function(){this.originalElement.addClass("form-control").parent().addClass("input-group"),$('').insertAfter(this.originalElement)},h.prototype.handleBlurEvent=function(t){this.blockBlurEventOnOriginal&&t.preventDefault()},h.prototype.createGhostElement=function(){return $("