~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/iron-swipeable-container/README.md

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<!---
 
3
 
 
4
This README is automatically generated from the comments in these files:
 
5
iron-swipeable-container.html
 
6
 
 
7
Edit those files, and our readme bot will duplicate them over here!
 
8
Edit this file, and the bot will squash your changes :)
 
9
 
 
10
-->
 
11
 
 
12
[![Build Status](https://travis-ci.org/PolymerElements/iron-swipeable-container.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-swipeable-container)
 
13
 
 
14
_[Demo and API Docs](https://elements.polymer-project.org/elements/iron-swipeable-container)_
 
15
 
 
16
 
 
17
##&lt;iron-swipeable-container&gt;
 
18
 
 
19
 
 
20
`<iron-swipeable-container>` is a container that allows any of its nested
 
21
children (native or custom elements) to be swiped away. By default it supports
 
22
a curved or horizontal transition, but the transition duration and properties
 
23
can be customized.
 
24
 
 
25
Example:
 
26
 
 
27
    <iron-swipeable-container>
 
28
      <div>I can be swiped</div>
 
29
      <paper-card heading="Me too!"></paper-card>
 
30
    </iron-swipeable-container>
 
31
 
 
32
To disable swiping on individual children, you must give them the `.disable-swipe`
 
33
class. Alternatively, to disable swiping on the whole container, you can use its
 
34
`disable-swipe` attribute:
 
35
 
 
36
    <iron-swipeable-container>
 
37
      <div class="disable-swipe">I cannot be swiped be swiped</div>
 
38
      <paper-card heading="But I can!"></paper-card>
 
39
    </iron-swipeable-container>
 
40
 
 
41
    <iron-swipeable-container disable-swipe>
 
42
      <div>I cannot be swiped</div>
 
43
      <paper-card heading="Me neither :("></paper-card>
 
44
    </iron-swipeable-container>
 
45
 
 
46
It is a good idea to disable text selection on any of the children that you
 
47
want to be swiped:
 
48
 
 
49
    .swipe {
 
50
      -moz-user-select: none;
 
51
      -ms-user-select: none;
 
52
      -webkit-user-select: none;
 
53
      user-select: none;
 
54
      cursor: default;
 
55
    }
 
56
 
 
57