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
| router | The route instance from vue router. As it differe from Vue2 and Vue3 we can't import it automatically and need to have the instance in parameter |
91
91
| form | A simple object used to filter the form. This object is synchronized with the url. When it change it reset the page attribute of the options variable |
92
92
| fetchDatas | Callback function called when options or form changed or after a reload with the correct parameter to send to the backend for backend pagination or custom actions. This function take 2 parameter: queryParams, queryAsObject that are the data transformed by VDUS to match your backend criteria in string or object format. |
93
-
| options | The options used for the datatable. It follow a strict pattern. See [DatatableOptions](#TODO) type for more informations. If your server use other query identifier use formSchema to change their name before fetchDatas been called |
94
-
| formSchema | The object that allow you to customize the defaut value, the type and the names send to the backend. See [FormSchema](#TODO) type for the structure and [the documentation section](#TODO) to understand how to use it |
95
-
| initializeForm | A callback function called at the component creation to allow developer to adapt behavior depending of the query params in the url if needed. Usefull if to value are non-compatible because user change it manually. |
96
-
| configurations | Object that allow to personnalise the behavior of VDUS in specific case. See [VDUSConfiguration](#TODO) type and [the documentation section](#TODO) to understand how to use it |
93
+
| options | The options used for the datatable. It follow a strict pattern. See [VDUSDatatableOptions](#TODO) type for more informations. If your server use other query identifier use formSchema to change their name before fetchDatas been called |
94
+
| formSchema | Optional. The object that allow you to customize the defaut value, the type and the names send to the backend. See [VDUSFormSchema](#TODO) type for the structure and [the documentation section](#TODO) to understand how to use it |
95
+
| initializeForm | Optional. A callback function called at the component creation to allow developer to adapt behavior depending of the query params in the url if needed. Usefull if to value are non-compatible because user change it manually. |
96
+
| configurations | Optional. Object that allow to personnalise the behavior of VDUS in specific case. See [VDUSConfiguration](#TODO) type and [the documentation section](#TODO) to understand how to use it |
| loading | Boolean value to be able to wait in the template that the data is correctly setted from the url and the data retrieve or filtered in fetchDatas especially if your fetchDatas is asynchronous |
104
104
| vuetifyOptions | The datatable options on the vuetify format to be able to use it directly in the template without the need to transform it |
105
+
106
+
107
+
# FormSchema
108
+
109
+
The parameter formSchema allow you to adapt the default behavior of vue-datatable-url-sync for each parameter (for the form AND for the options).
110
+
With it you can specify the type of the params, the default value and the query param name to send to the server.
111
+
112
+
[See the type to understand better](#TODO)
113
+
114
+
Here is the description of the type for the configuration of each params ((ParamSchema)[#TODO])
0 commit comments