'call AG grid cell rendered with parameter

I am assigning a class to a JavaScript object. Is there any way to call this class with parameters? I did try using the below-mentioned way, but it keeps giving the error "e is not a constructor "

 multiselectEditor:class {
        constructor(attribute) {
        this.attribute:attribute

        }
      
        init(params) {
         
        }
        getGui() {
          return this.container;
        }
        afterGuiAttached() {
        
        }
      
        getValue() {
         
          return this.container.value;
        }
        destroy() {}
      
        isPopup() {
          return true;
        }
     },

This is how I am setting the grid-column definition

  { headerName: 'Licencing', valueGetter: this.set_attribute("pr_licencing"),width:"120px",valueSetter: this.get_attribute_free_text("pr_licencing"),cellEditor: new this. multiselectEditor("our prams"),editable:true},


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source