@@ -17,18 +17,18 @@ from .input_field import InputField
vuetify.enable_lab()
classDataSelector(vuetify.VDataTableVirtual):
classDataSelector(datagrid.VGrid):
"""Allows the user to select datafiles from an IPTS experiment."""
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(vuetify.VDataTableVirtual):
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(vuetify.VDataTableVirtual):
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.
**kwargs
All other arguments will be passed to the underlying