Documentation Index
Fetch the complete documentation index at: https://docs.tight.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Mileage Dashboard is all you need to provide full mileage tracking to your users, with a full user experience allowing your users to:- Add drives, with auto-complete start and end addresses, route calculation/visualization, and reverse geocoding
- View drives/routes/addresses
- Classify drive purpose (business vs. personal)
- Define favorite locations
- Assign drives to classes
Embedding the Mileage Dashboard
To initialize the Tight Embedded experience in your React project, follow the instructions on Embedding Tight’s white-labeled UI. Below is an example embedding of the Mileage Dashboard:MileageDashboard.tsx
Props
The set of filters to apply to the dashboard.Passing in a value for this prop turns this into a controlled component.
As such, you must also pass the onChangeFilters prop to adjust the filters for user input.
A function that is called whenever the user changes the filters from the dashboard.
This function will only be invoked if the
filters prop is also provided. The callback takes filters as its single
argument.The number of transactions to show on a single page of the dashboard.