/
views.html
276 lines (242 loc) · 8.37 KB
/
views.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta charset="utf-8">
<title>views | Reapp - Hybrid apps, fast</title>
<meta name="description" content="DottedViewList
A side-by-side view list, with Dots at the top that track
the position of the views inside, similar to the Twitter App.
Props:
propTypes: {
scrollToStep: React.PropTypes.number,
dis">
<meta property="og:type" content="website">
<meta property="og:title" content="views">
<meta property="og:url" content="http://reapp.io/views.html">
<meta property="og:site_name" content="Reapp">
<meta property="og:description" content="DottedViewList
A side-by-side view list, with Dots at the top that track
the position of the views inside, similar to the Twitter App.
Props:
propTypes: {
scrollToStep: React.PropTypes.number,
dis">
<meta property="og:updated_time" content="2016-05-02T01:45:12.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="views">
<meta name="twitter:description" content="DottedViewList
A side-by-side view list, with Dots at the top that track
the position of the views inside, similar to the Twitter App.
Props:
propTypes: {
scrollToStep: React.PropTypes.number,
dis">
<link rel="icon" href="/favicon.png" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_light.min.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="alternate" href="/atom.xml" title="Reapp">
</head>
<body>
<header class="header">
<div class="row center-xs start-md">
<h1 class="logo"><a href="/">Reapp</a></h1>
<nav class="nav">
<a href="/start.html">Get Started</a>
<a class="active" href="/ui.html">Doc<span class="hide-sm">s</span><span class="hide-xs show-sm">umentation</span></a>
<a href="/blog">Blog</a>
</nav>
<nav class="nav right hide-xs">
<a href="https://twitter.com/reapp">Twitter</a>
<a href="https://github.com/reapp/reapp" target="_blank">
Github
</a>
</nav>
</div>
</header>
<div class="sub-nav">
<div class="row">
<div class="col-xs-12">
<nav>
<a href="/ui.html">User Interface</a>
<a href="/packages.html">Packages</a>
<hr />
<a href="/components.html">Components</a>
<a class="active" href="/views.html">Views</a>
<hr />
<span class="core">
<a href="/docs-animations.html">Animations</a>
<!-- <a href="/docs-styles.html">Styles</a> -->
<a href="/docs-themes.html">Themes</a>
<!-- <a href="/docs-viewlists.html">ViewLists</a> -->
</span>
</nav>
</div>
</div>
</div>
<div class="page">
<div class="row">
<div id="nav" class="col-xs-12 col-md-5">
<!-- nav.js will generate this -->
</div>
<div class="col-xs-12 col-md-7 first-xs pad-right">
<h3>DottedViewList</h3>
<p>A side-by-side view list, with Dots at the top that track
the position of the views inside, similar to the Twitter App.</p>
<p>Props:</p>
<pre><code>propTypes: {
scrollToStep: React.PropTypes.number,
disableScroll: React.PropTypes.bool,
width: React.PropTypes.number,
height: React.PropTypes.number,
onTouchStart: React.PropTypes.func,
onTouchEnd: React.PropTypes.func,
onViewEntering: React.PropTypes.func,
onViewEntered: React.PropTypes.func,
onViewLeaving: React.PropTypes.func,
onViewLeft: React.PropTypes.func,
scrollerProps: React.PropTypes.object
}
</code></pre>
<h3>LayoutLeftNav</h3>
<p><strong>In Progress</strong></p>
<p>Use at the top level of your app, above any ViewList or View.
Provides a slide-out menu and passes the handle prop down to children.</p>
<p>Props:</p>
<pre><code>propTypes: {
behavior: React.PropTypes.object,
sideWidth: React.PropTypes.number,
sizeZIndex: React.PropTypes.number,
drawerProps: React.PropTypes.object,
handle: React.PropTypes.node,
draggable: React.PropTypes.bool
}
</code></pre>
<h3>NestedViewList</h3>
<p>This is the standard viewlist and for now mimics the iOS-style swipe from the edge
views.</p>
<p>Props:</p>
<pre><code>propTypes: {
scrollToStep: React.PropTypes.number,
disableScroll: React.PropTypes.bool,
width: React.PropTypes.number,
height: React.PropTypes.number,
onTouchStart: React.PropTypes.func,
onTouchEnd: React.PropTypes.func,
onViewEntering: React.PropTypes.func,
onViewEntered: React.PropTypes.func,
onViewLeaving: React.PropTypes.func,
onViewLeft: React.PropTypes.func,
scrollerProps: React.PropTypes.object
}
</code></pre>
<h3>View</h3>
<p>The base View class. Give it a <code>title</code> property to automatically add a titlebar.
When used inside a ViewList, it will be animated automatically.</p>
<p>Props:</p>
<pre><code>propTypes: {
title: React.PropTypes.node,
index: React.PropTypes.number,
width: React.PropTypes.number,
height: React.PropTypes.number,
// add animations in view list
isInViewList: React.PropTypes.bool,
// offset of inner scroll area from top
offsetTop: React.PropTypes.number,
// offset of inner scroll area from bottom
offsetBottom: React.PropTypes.number,
animations: React.PropTypes.object,
// pass inner div props (scrollable content)
innerProps: React.PropTypes.object,
// pass titlebar props
titleBarProps: React.PropTypes.object,
// pass overlay div props
overlayProps: React.PropTypes.object,
// place a node outside the inner pane
after: React.PropTypes.node,
// disable pointer events
inactive: React.PropTypes.bool,
// make the StaticContainer inside fullscreen
fullscreen: React.PropTypes.bool,
// see scrollTopable
scrollTop: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
}
</code></pre>
<h3>ViewList</h3>
<p>By default the ViewList comes with no properties,
see the <code>/behaviors</code> folder for example properties you can use.</p>
<p>Props:</p>
<pre><code>propTypes: {
scrollToStep: React.PropTypes.number,
disableScroll: React.PropTypes.bool,
width: React.PropTypes.number,
height: React.PropTypes.number,
onTouchStart: React.PropTypes.func,
onTouchEnd: React.PropTypes.func,
onViewEntering: React.PropTypes.func,
onViewEntered: React.PropTypes.func,
onViewLeaving: React.PropTypes.func,
onViewLeft: React.PropTypes.func,
scrollerProps: React.PropTypes.object
}
</code></pre>
</div>
</div>
</div>
<script src="/js/nav.js"></script>
<footer class="footer">
<div class="row">
<div class="hide-xs col-sm-2"></div>
<div class="col-xs-12 col-sm-4">
<nav>
<a href="/start.html">Get Started</a>
<a href="/ui.html">Docs</a>
<a href="/packages.html">Packages</a>
</nav>
</div>
<div class="col-xs-12 col-sm-4">
<nav>
<a href="https://github.com/reapp/reapp" target="_blank">Github</a>
<a href="https://twitter.com/reapp" target="_blank">Twitter</a>
</nav>
</div>
<div class="hide-xs col-sm-2"></div>
<div class="row">
<div class="col-xs-12">
<span>Copyright 2016 reapp.</span>
<span>Icons from <a href="http://www.flaticon.com">flaticon.com</a> under CC 3.0</span>
<span>nate@reapp.io</span>
<span>Stewarded by</span>
<a href="https://www.levelupdevelopment.com">
<img width="25%" height="25%" src="/images/lud-logo.svg" title="Level Up Development LLC" alt="Level Up Development LLC" />
</a>
</div>
</div>
</div>
<div class="spiro"></div>
</footer>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-57645827-1', 'auto');
ga('send', 'pageview');
</script>
<script src="/js/highlight.js"></script>
<script src="/js/highlight-js.js"></script>
<script src="/js/highlight-xml.js"></script>
<script>
hljs.registerLanguage('js', H_js);
hljs.registerLanguage('xml', H_xml);
hljs.initHighlightingOnLoad();
</script>
</body>
</html>
</body>
</html>