@@ -23,12 +23,12 @@ class DataSelector(datagrid.VGrid):
def__init__(
self,
v_model:str,
allow_custom_directories:bool=False,
facility:str="",
instrument:str="",
extensions:Optional[List[str]]=None,
prefix:str="",
select_strategy:str="all",
show_user_directories:bool=False,
**kwargs:Any,
)->None:
"""Constructor for DataSelector.
@@ -38,6 +38,9 @@ class DataSelector(datagrid.VGrid):
v_model : str
The name of the state variable to bind to this widget. The state variable will contain a list of the files
selected by the user.
allow_custom_directories : bool, optional
Whether or not to allow users to provide their own directories to search for datafiles in. Ignored if the
facility parameter is set.
facility : str, optional
The facility to restrict data selection to. Options: HFIR, SNS
instrument : str, optional
@@ -50,9 +53,6 @@ class DataSelector(datagrid.VGrid):
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.
show_user_directories : bool, optional
Whether or not to allow users to select data files from user directories. Ignored if the facility parameter
is set. Please note that the component only looks for a "nova" directory and ignores all other content.
**kwargs
All other arguments will be passed to the underlying