forked from LRNWebComponents/hax-body
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhax-plate-context.html
65 lines (60 loc) · 1.75 KB
/
hax-plate-context.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="hax-context-item-menu.html">
<link rel="import" href="hax-context-item.html">
<!--
`hax-plate-context`
A context menu that provides common grid plate based authoring options.
@demo demo/index.html
@microcopy - the mental model for this element
- context menu - this is a menu of text based buttons and events for use in a larger solution.
- grid plate - the container / full HTML tag which can have operations applied to it.
-->
<dom-module id="hax-plate-context">
<template>
<style>
:host {
display: block;
background-color: white;
width: 40px;
}
hax-context-item-menu,
hax-context-item {
display: block;
margin: 0;
width: 40px;
height: 40px;
}
hax-context-item ::shadow paper-icon-button {
height: 40px;
}
</style>
<hax-context-item
icon="arrow-upward"
label="Move element up"
event-name="grid-plate-up"
direction="left"></hax-context-item>
<hax-context-item
icon="arrow-downward"
label="Move element down"
event-name="grid-plate-down"
direction="left"></hax-context-item>
<hax-context-item
icon="content-copy"
icon-class="green-text text-lighten-2"
label="Duplcate element"
event-name="grid-plate-duplicate"
direction="left"></hax-context-item>
<hax-context-item
icon="delete"
icon-class="red-text text-darken-2"
label="Delete element"
event-name="grid-plate-delete"
direction="left"></hax-context-item>
</template>
<script>
Polymer({
is: 'hax-plate-context',
});
</script>
</dom-module>