# Global Settings

When you install Vue Smart Table, you can optionally pass an object to globally configure certain behaviours.

Any of these settings can be set directly on each Smart Table instance, but it is much easier to do it once globally. Through the documentation you will see a Global badge on certain settings, that means the setting can be set globally.

SettingDescriptionDocumentation
sortIconPositionAllows to set the position of the sort iconsSort Icon Position
sortHeaderClassAdds additional classes to the th headerSort Header Class
hideSortIconsHides the default sort icons so you can provide your ownHide Sort Icons
selectOnClickDetermines whether or not a row is selected when clickedSelect On Click

# Example

import SmartTable from 'vuejs-smart-table'

Vue.use(SmartTable, {
  sortIconPosition: 'before',
  sortHeaderClass: 'custom-header',
  hideSortIcons: true,
  selectOnClick: false
})
1
2
3
4
5
6
7
8
Last Updated: 7/28/2021, 8:24:25 PM