Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
4222a404
Commit
4222a404
authored
Oct 02, 2019
by
christianrhansen
Browse files
cell-context-menu for desktop only atm. added comments.
parent
86764b79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
partials/GridEditor.vue
partials/GridEditor.vue
+6
-3
No files found.
partials/GridEditor.vue
View file @
4222a404
...
...
@@ -58,7 +58,7 @@
q-btn.edit-button.absolute.fit.bg-transparent(
@click.prevent="event => {touchMobileCell(event, annotation)}", flat)
// selecting cells disabled because it has no use currently
//
-----
selecting cells disabled because it has no use currently
// switch with cell component below to re-enable it
//cell(
@click.native.prevent="event => {handleCellClick(event, annotation)}", :annotation="annotation", :preview="true")
...
...
@@ -67,7 +67,7 @@
:preview="true"
)
//----- resize-handler
(cell)
//----- resize-handler
.desktop-only.cell-item-resize-handle(
draggable="true",
@dragstart="event => {handleCellResizerDragStart(event, annotation)}",
...
...
@@ -75,7 +75,9 @@
@dragexit="event => {handleCellResizerDragEnd(event, annotation)}")
q-icon(name="network cell")
q-context-menu
//----- context menu for cells (desktop only)
// TODO: needs revision
q-context-menu.desktop-only
q-list(link, separator, no-border, style="min-width: 150px; max-height: 300px;")
q-item(
v-for="action in cellContextMenuActions",
...
...
@@ -84,6 +86,7 @@
@click.native="event => {action.handler(event, annotation)}")
q-item-main(:label="action.label")
//----- temporary cell when pulling a new cell into grid (desktop)
template(v-for="(tmpCell, index) in tmpObjects")
.cell-item.cell-item-tmp(:style="getAnnotationStyle(tmpCell)", :key="`cell-tmp-${index}`")
cell(:cell="tmpCell")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment