# Tabs Behavior

# Drag Sort

RouterTab supports tab drag sort by default, you can disable this function by configuring :dragsort="false".

Example:

<router-tab :dragsort="false" />
1

# Insert Position

RouterTab can specify the insert position of the new tab by configuring append, and supports the following two options:

  • last End of tabs (default)

  • next Next position of current tab

Example:

<router-tab append="next" />
1

# Close Last Tab

By default, the last tab of RouterTab can not be closed manually.

This behavior can be modified by configuring :keep-last-tab="false".

After closing the last tab, RouterTab will redirect to the default route.

Example:

<router-tab :keep-last-tab="false" />
1
Last updated: 8/22/2020, 9:40:36 AM