Skip to content

Instantly share code, notes, and snippets.

DespertaWeb

Block or report user

Report or block DespertaWeb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@DespertaWeb
DespertaWeb / pagination_component.vue
Last active Jun 1, 2018
2 way binding Select Component Vue.js
View pagination_component.vue
<template>
<nav id="pagination" class="clearfix u-text-align-right u-margin-bottom-l u-line-height-40">
Page
<select id="pagination_select" v-model="pageSelected" class="e-select i-svg__arrow-down" :disabled="totalPages === 1 ? true : false">
<option
id="`pagination_select__option`"
v-for="pageNumber in totalPages"
:selected="pageNumber === currentPage"
:value="pageNumber"
>
@DespertaWeb
DespertaWeb / axiosScript.js
Last active May 17, 2018
File load and Display
View axiosScript.js
axios({
url: `${config.BASE}/download/${this.section.urlSingular}_50.pdf`,
method: 'GET',
headers: LocalStorage.get('inv.headers'),
responseType: 'blob'
})
.then((response) => {
this.urlPdf = URL.createObjectURL(response.data)
})
.catch((error) => {
You can’t perform that action at this time.