Also the docs currently state that the default value is all of the matched files, but in practice it's None.
While that's what the docs say, the behavior of ListSelector from which MultiFileSelector inherits is for default to be None so I'm not sure we should make this change without also updating ListSelector. Also, Panel maps the MultiFileSelector parameter to the FileSelector widget (the FileSelectorParameter being mapped to a simple Select or TextInput widget) and I don't think we'd want all the files to be selected by default.
import param
class P(param.Parameterized):
ls = param.ListSelector(objects=[1, 2, 3])
a = A()
assert a.ls is None
Fixes https://github.com/holoviz/param/issues/545 Supersedes https://github.com/holoviz/param/pull/546
The issue stated about
FileSelector
:This has been addressed in https://github.com/holoviz/param/pull/801.
About
MultiFileSelector
:While that's what the docs say, the behavior of
ListSelector
from whichMultiFileSelector
inherits is fordefault
to beNone
so I'm not sure we should make this change without also updatingListSelector
. Also, Panel maps theMultiFileSelector
parameter to the FileSelector widget (theFileSelector
Parameter being mapped to a simpleSelect
orTextInput
widget) and I don't think we'd want all the files to be selected by default.