vue-good-table-nextvue-good-table-next
Home
Guide
GitHub
Home
Guide
GitHub
  • Introduction

    • Getting Started
  • Configuration

    • Table Options
    • Table Events
    • Search Options
    • Sort Options
    • Pagination Options
    • Column Options
    • Column Filter Options
  • Advanced Configuration

    • Customizations
    • Checkbox Table
    • Grouped Table
    • Server Side Table
    • Row Details Table
  • Style Configuration

    • Themes
    • Style Classes
    • Sass

Row Details Table

This option allows you to show or hide the details of a row on click.

Configuration

type: Boolean

table-row props now also contain props.expandedRow this will be true if row is expanded

Object containing select options

<vue-good-table
  :columns="columns"
  :rows="rows"
  :enable-row-expand="true"
  expanded-row-classes="bg-red"
  expanded-row-detail-classes="bg-yellow"
>

Example

<vue-good-table
  :columns="columns"
  :rows="rows"
  :enable-row-expand="true"
  expanded-row-classes="bg-red"
  expanded-row-detail-classes="bg-yellow">
    <template #row-details="props">
      <p>{{ props.formattedRow }} (or props.row.X to access any property X of the current row)</p>
    </template>
</vue-good-table>
Edit this page
Last Updated:
Contributors: Karthik Ponnam, Boris Flesch
Prev
Server Side Table