Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Add CSV download / upload functionality #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions assets/css/tablex.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ROW BLOCKS

.tablex-field .tablex-ctrl,
.tablex-field .tablex-row,
.tablex-field .tablex-add-row {
.tablex-field .tablex-actions {
display: flex;
}

Expand Down Expand Up @@ -56,7 +56,7 @@ CONTROLS BLOCKS
}

.tablex-field .tablex-row .row-ctrl,
.tablex-field .tablex-add-row .row-ctrl {
.tablex-field .tablex-actions .row-ctrl {
height: 3rem;
}

Expand All @@ -65,20 +65,17 @@ CONTROLS BLOCKS
border-bottom-color: #d7d7d7;
}

.tablex-field .tablex-add-row .row-ctrl:first-child {
.tablex-field .tablex-actions .row-ctrl:first-child {
border-color: transparent;
}

.tablex-field .tablex-add-row .row-ctrl:last-child {
.tablex-field .tablex-actions .row-ctrl:last-child {
border-color: transparent;
}



/*
CELLS
*/

.tablex-field .row-cell {
position: relative;
width: 100%;
Expand All @@ -102,7 +99,7 @@ CELLS
font-weight: 700;
}

.tablex-field .tablex-add-row .row-cell {
.tablex-field .tablex-actions .row-cell {
border-style: dashed;
border-left-color: #d7d7d7;
border-right-color: #d7d7d7;
Expand Down Expand Up @@ -171,19 +168,40 @@ CONTROLS ICONS
}

/* add row */
.tablex-field .tablex-add-row i.fa-plus {
.tablex-field .tablex-actions i.fa-plus,
.tablex-field .tablex-actions i.fa-download,
.tablex-field .tablex-actions i.fa-upload {
left: 0;
width: 100%;
height: 3rem;
line-height: 3rem;
font-size: 18px;
}



/*
Transitions
*/

[v-cloak].tablex-field {
display: none;
}

.row-cell-upload {
position: relative;
}

.tablex-field .upload-btn {
cursor: pointer;
height: 100%;
left: 0;
opacity: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 1;
}

.tablex-field .upload-icon {
font-size: 30px;
cursor: pointer;
}
7 changes: 7 additions & 0 deletions assets/js/papaparse.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading