Allows a worker to view all of their documents.
Available as:
This worker facing experience provides a worker user access to view their payroll documents. The worker can filter their documents by type, and view them through the browser, or by downloading the document.
Options
Name | Type | Description |
---|---|---|
userToken | String | Required. A User Token with WORKER_USER access role for the specified Worker. |
workerId | String | Required. The id of the Worker. |
Refer to the reference on creating elements for the additional options that are available to all elements.
Embedded usage
Element name: worker-documents
Refer to the guide on how to embed an Element with Salsa.js for more detailed instructions.
Example
salsa.elements.create('worker-documents', {
userToken: 'eyJhbGciO...ajs0Wqw',
workerId: 'wr_e8343fc7-9d63-4cc5-81ed-c573fc666d37'
});