This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Import or use component above like this `<SimplePagination :pagination="paginationData" :callback="getApplications" />` | |
2. paginationData is the whole data coming from the laravel endpoint with has the pagination and data in it | |
3. getApplications is the method that fetch the applications on first load and keeps fetching the values. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="dataTables_wrapper dt-bootstrap4 no-footer"> | |
<spinner | |
:showFull="true" | |
:loadingText="actionTypeText" | |
v-if="processingStuff || showFullLoader" | |
></spinner> | |
<div class="row"> | |
<div class="col-sm-12 col md-6"> | |
<div class="btn-group" role="group" aria-label="Actions"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getSleepHours = day => { | |
if (day === 'monday') { | |
return 8; | |
} else if (day === 'tuesday') { | |
return 7; | |
} else if (day === 'wednesday') { | |
return 6; | |
} else if (day === 'thursday') { | |
return 5; | |
} else if (day === 'friday') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
about me |