-
Notifications
You must be signed in to change notification settings - Fork 12
/
left-swipe-action-button.html
36 lines (32 loc) · 1.02 KB
/
left-swipe-action-button.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
<!--
'left-swipe-action-button' is a button working with left-swipe-action.
The button is fit with a content height and aligned as table cells.
<left-swipe-action-button onclick="alert('delete')">Delete</left-swipe-action-button>
To customize styles, please add your styles to the element.
<left-swipe-action-button style="background-color: #9F499B; color: #fff;" onclick="alert('favorite')">Favorite</left-swipe-action-button>
@element left-swipe-action-button
@auther tejitak
-->
<dom-module id="left-swipe-action-button">
<style>
:host {
display: table;
height: 100%;
padding: 0 20px;
}
.action-button-wrapper {
display: table-cell;
vertical-align: middle;
font-size: 1.8rem;
font-weight: 300;
}
</style>
<template>
<div class="action-button-wrapper">
<content></content>
</div>
</template>
</dom-module>
<script>
Polymer({is: "left-swipe-action-button"});
</script>