简体   繁体   中英

How to increase excel sheet column width while downloading in react js ? ,i am using a package called "export-from-json"

  downloadPropertiesInXl = async () => {
    let API_URL = "something....";
      const property = await axios.get(API_URL);
      const data = property.data;
      const fileName = "download";
      const exportType = "xls";

      exportFromJSON({ data, fileName, exportType });
    }
  };

is there any other packages to change column width??

Use Excel.js, it have many options for customization

https://www.npmjs.com/package/exceljs#columnsex

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM