You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FileSelector behaves like Selector and should as such set its value to the first item of objects, objects being the result of a glob on path. When path is updated it should also update objects.
MultiFileSelector should also update objects when path is updated. Also the docs currently state that the default value is all of the matched files, but in practice it's None.
A param.MultiFileSelector is the analog of ListSelector but for files, i.e., again supporting a path glob but allowing the user to select a list of filenames rather than a single filename. The default value in this case is all of the matched files, not just the first one.
Not updating objects when path changes seems like a bug to me.
But changing the default value of FileSelector (inconsistent with Selector) and MultiFileSelector (inconsistent with Selector but consistent with ListSelector) is a backwards incompatible change, which I'm less inclined to fix now.
I vote for changing the default as indicated and for updating for path changes. The default behavior of None is both inconsistent with the docs and also seems very unlikely to be useful in practice, and Param 2.0 is probably our only real chance to change that. Updating for path changes is already covered by #546.
FileSelector
behaves likeSelector
and should as such set its value to the first item of objects, objects being the result of a glob on path. When path is updated it should also update objects.MultiFileSelector
should also update objects when path is updated. Also the docs currently state that the default value is all of the matched files, but in practice it's None.The text was updated successfully, but these errors were encountered: