OiO.lk Blog jQuery How to change the title in window.showSaveFilePicker() function
jQuery

How to change the title in window.showSaveFilePicker() function


How to change the title in window.showSaveFilePicker() function.

async function getNewFileHandle() {
  const opts = {
    types: [
      {
        description: "Text file",
        accept: { "text/plain": [".txt"] },
      },
    ],
  };
  return await window.showSaveFilePicker(opts);
}
getNewFileHandle();



You need to sign in to view this answers

Exit mobile version