"""Allows the user to select datafiles from the server."""
REFRESH_RATE=30
def__init__(
self,
v_model:str,
directory:str,
extensions:Optional[List[str]]=None,
prefix:str="",
refresh_rate:int=30,
select_strategy:str="all",
**kwargs:Any,
)->None:
@@ -46,6 +45,9 @@ class DataSelector(datagrid.VGrid):
prefix : str, optional
A subdirectory within the selected top-level folder to show files. If not specified, the user will be shown
a folder browser and will be able to see all files in the selected top-level folder.
refresh_rate : int, optional
The number of seconds between attempts to automatically refresh the file list. Set to zero to disable this
feature. Defaults to 30 seconds.
select_strategy : str, optional
The selection strategy to pass to the `VDataTable component <https://trame.readthedocs.io/en/latest/trame.widgets.vuetify3.html#trame.widgets.vuetify3.VDataTable>`__.
If unset, the `all` strategy will be used.
@@ -76,6 +78,7 @@ class DataSelector(datagrid.VGrid):
@@ -32,6 +32,7 @@ class NeutronDataSelector(DataSelector):
instrument:str="",
extensions:Optional[List[str]]=None,
prefix:str="",
refresh_rate:int=30,
select_strategy:str="all",
**kwargs:Any,
)->None:
@@ -54,6 +55,9 @@ class NeutronDataSelector(DataSelector):
prefix : str, optional
A subdirectory within the user's chosen experiment to show files. If not specified, the user will be shown a
folder browser and will be able to see all files in the experiment that they have access to.
refresh_rate : int, optional
The number of seconds between attempts to automatically refresh the file list. Set to zero to disable this
feature. Defaults to 30 seconds.
select_strategy : str, optional
The selection strategy to pass to the `VDataTable component <https://trame.readthedocs.io/en/latest/trame.widgets.vuetify3.html#trame.widgets.vuetify3.VDataTable>`__.
If unset, the `all` strategy will be used.
@@ -76,7 +80,7 @@ class NeutronDataSelector(DataSelector):