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
@@ -556,7 +556,6 @@ in the open job. Both helpers return an unsubscribe function, though the plugin
556
556
remaining field subscriptions when the job dialog closes.
557
557
558
558
559
-
560
559
## Frontend API
561
560
### Job info popup
562
561
If you want to immediately open the job info popup, return the job ID from the API that creates the job:
@@ -591,6 +590,26 @@ For example:
591
590
592
591
```
593
592
593
+
### Filtering task fields you are getting on the frontend
594
+
595
+
Sometimes task state fields can be very complex and big, so when you run such a task with a big dataset and then fetch the tasks on the frontend, it can overload the browser with information you are not using. For those cases you can use the `fieldsToReturn` param in your custom component on the frontend to receive only the fields that you need.
596
+
597
+
```vuetitle="./custom/JobCustomComponent.vue"
598
+
599
+
...
600
+
601
+
asyncfunction loadTasks() {
602
+
/**
603
+
* props.getJobTasks will return only 'task_number' and 'task_counter',
604
+
* so if you have data you don't want to send to the frontend, you can use this param
0 commit comments