Skip to content

Instantly share code, notes, and snippets.

@egeersoz
Created July 20, 2019 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egeersoz/ca49747c9084a65249df8d9daa295085 to your computer and use it in GitHub Desktop.
Save egeersoz/ca49747c9084a65249df8d9daa295085 to your computer and use it in GitHub Desktop.
1.5 v-data-table
<tr>
<td>
<v-checkbox
v-model="props.selected"
primary
hide-details
></v-checkbox>
</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')">{{ props.item.id }}</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')">
<v-layout align-center><user-avatar :firstName="props.item.user.first_name" :lastName="props.item.user.last_name" :avatarUrl="props.item.user.avatar_url" class="mr-2"></user-avatar>{{ props.item.user.full_name }}</v-layout>
</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')">
<v-chip disabled text-color="white" :color="$store.getters.getHelpers.calculateEstimateLabelColor(props.item.status)" label small>{{ props.item.status }}</v-chip>
</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')">{{ findLastActivity(props.item.estimate_histories) }}</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')">{{ props.item.customer.full_name }}</td>
<td style="cursor:pointer" @click="$router.push('/estimates/' + props.item.id + '/view')"><span style="float:right">${{ $store.getters.getHelpers.formatMoney(props.item.revisions[props.item.revisions.length - 1].estimate_amount) }}</span></td>
</tr>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment