I have implemented a table with expandable row functionality. Currently, when the expand icon is clicked, the row expands. You can view an example HERE. However, I would like to make the entire row clickable in order to toggle between expand and collapse, similar to how it works when the expand icon is clicked.
Any assistance would be greatly appreciated.
Below is the markup I am using:
<template lang="pug">
el-table(:data="tableData")
el-table-column(label="Employee Name", prop="userName")
el-table-column(label="Company Name", prop="companyName")
el-table-column(type="expand", align="right" )
template(slot-scope="props")
p User Name: {{ props.row.userName }}
p Company Name: {{ props.row.companyName }}
</template>