PHP Classes

File: public/js/filament/forms/components/textarea.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Lara Filament   public/js/filament/forms/components/textarea.js   Download  
File: public/js/filament/forms/components/textarea.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lara Filament
Blog post management and publication system
Author: By
Last change:
Date: 8 days ago
Size: 649 bytes
 

Contents

Class file image Download
function r({initialHeight:t,shouldAutosize:i,state:s}){return{state:s,wrapperEl:null,init:function(){this.wrapperEl=this.$el.parentNode,this.setInitialHeight(),i?this.$watch("state",()=>{this.resize()}):this.setUpResizeObserver()},setInitialHeight:function(){this.$el.scrollHeight<=0||(this.wrapperEl.style.height=t+"rem")},resize:function(){if(this.setInitialHeight(),this.$el.scrollHeight<=0)return;let e=this.$el.scrollHeight+"px";this.wrapperEl.style.height!==e&&(this.wrapperEl.style.height=e)},setUpResizeObserver:function(){new ResizeObserver(()=>{this.wrapperEl.style.height=this.$el.style.height}).observe(this.$el)}}}export{r as default};