UxTableListSorter

components/ux/table-list/Sorter.vue

Sortable column header with rotating arrow indicator and sort direction toggle.

domain
requests
avgDuration
api.github.com45,230145 ms
api.stripe.com32,45689 ms
api.cloudflare.com28,90167 ms
api.twilio.com15,678112 ms
api.sendgrid.com9,87078 ms
components/ux/table-list/Sorter.vue

Usage

<UxTableListSorter sortMetric = "—" total = "—" :isHot = "false" :isSorting = "false" :disabled = "false" width = "1%" align = "—" > Content here </UxTableListSorter>

Props

PropTypeDefaultDescription
sortMetricString''Metric key for this column
totalString''Total count displayed in header
isHotBooleanfalseHot state styling
isSortingBooleanfalseWhether this column is active sort
disabledBooleanfalseDisable sorting
widthString'1%'Column width. Default '1%' shrinks the column to its content; pass a px/percent value to size explicitly
alignString''Text alignment

Events

EventDescription
sortUpSort ascending
sortDownSort descending

Slots

SlotDescription
defaultColumn label

Related

Qpoint Brand Style Guide