FilePicker misses an option to replicate a "Save As" functionality, in which the user can specify not only a path but also a (new) file name.
Probably this can be done with a new prop for the Vue component, fileName. If it is false (the default), just do nothing more than now. If it is a string, display a new editable text input field inited with the specified string.
It is debatable now to pass this new information to the buttons callback. Existing implementations with allowPickDirectory = true expect just a Folder item, and of course this cannot be broken; perhaps the callback can be called as callback(nodes, filename) (using the value of the new text input) when fileName != false.
FilePicker misses an option to replicate a "Save As" functionality, in which the user can specify not only a path but also a (new) file name.
Probably this can be done with a new prop for the Vue component,
fileName. If it isfalse(the default), just do nothing more than now. If it is a string, display a new editable text input field inited with the specified string.It is debatable now to pass this new information to the
buttonscallback. Existing implementations withallowPickDirectory = trueexpect just aFolderitem, and of course this cannot be broken; perhaps the callback can be called ascallback(nodes, filename)(using the value of the new text input) whenfileName != false.