|
1 | 1 | <div layout="row"> |
2 | 2 | <div layout="column" flex> |
3 | 3 | <input type="search" style="line-height: 48px; padding-left: 16px; border: none; outline: none;" placeholder="Search..." ng-model="searchTerm" /> |
| 4 | + |
| 5 | + |
4 | 6 | <md-tree ng-model="vm.selectedItems" restrict-selection="depth" flex> |
5 | 7 | <md-branch branch-repeat="location in vm.locationData | filter: $mdBranchFilter(searchTerm) | orderBy: location.name" class="md-2-line" select> |
6 | 8 | <div class="md-branch-text"> |
@@ -30,15 +32,55 @@ <h4 style="width: 120px; margin: 0 auto; padding-top: 16px;">Master Panel</h4> |
30 | 32 | </div> |
31 | 33 |
|
32 | 34 | <div style="width: 420px; padding: 0 16px; border-left: 1px solid #ccc; height: 100%; z-index: 99; background: #EEE;"> |
33 | | - <h2>Tree Component v0.0.1</h2> |
| 35 | + <h2>Tree Component v0.0.2</h2> |
34 | 36 | <a href="/components/tree/v0">version 0</a> |
| 37 | + <a href="/components/tree/v1">version 1</a> |
35 | 38 | <p><b>Whats new</b></p> |
36 | | - <p>Everything</p> |
37 | | - <ul> |
38 | | - <li>The core has been rebuilt</li> |
39 | | - <li>You can now filter</li> |
40 | | - <li>Branch auto open while filtering</li> |
41 | | - </ul> |
| 39 | + <p>Keyboard Controls</p> |
| 40 | + <div marked> |
| 41 | + <table> |
| 42 | +<thead> |
| 43 | +<tr> |
| 44 | +<th style="text-align:left">Key</th> |
| 45 | +<th style="text-align:left">Description</th> |
| 46 | +</tr> |
| 47 | +</thead> |
| 48 | +<tbody> |
| 49 | +<tr> |
| 50 | +<td style="text-align:left"><span ng-non-bindable=""><code>Down Arrow</code></span></td> |
| 51 | +<td style="text-align:left">focus on next visible branch</td> |
| 52 | +</tr> |
| 53 | +<tr> |
| 54 | +<td style="text-align:left"><span ng-non-bindable=""><code>Up Arrow</code></span></td> |
| 55 | +<td style="text-align:left">focus on previous visible branch</td> |
| 56 | +</tr> |
| 57 | +<tr> |
| 58 | +<td style="text-align:left"><span ng-non-bindable=""><code>Right Arrow</code></span></td> |
| 59 | +<td style="text-align:left">If current focused branch is closed then open it, otherwise focus on next branch</td> |
| 60 | +</tr> |
| 61 | +<tr> |
| 62 | +<td style="text-align:left"><span ng-non-bindable=""><code>Left Arrow</code></span></td> |
| 63 | +<td style="text-align:left">If current focused branch is open then close it, otherwise focus on previous branch</td> |
| 64 | +</tr> |
| 65 | +<tr> |
| 66 | +<td style="text-align:left"><span ng-non-bindable=""><code>Enter</code></span></td> |
| 67 | +<td style="text-align:left">Selection toggle. This will deselect all previous selections</td> |
| 68 | +</tr> |
| 69 | +<tr> |
| 70 | +<td style="text-align:left"><span ng-non-bindable=""><code>Space</code></span></td> |
| 71 | +<td style="text-align:left">Same as <span ng-non-bindable=""><code>Enter</code></span></td> |
| 72 | +</tr> |
| 73 | +<tr> |
| 74 | +<td style="text-align:left"><span ng-non-bindable=""><code>Shift+Enter</code></span></td> |
| 75 | +<td style="text-align:left">Multi select. This will toggle focused branches selection without deselecting previous selections</td> |
| 76 | +</tr> |
| 77 | +<tr> |
| 78 | +<td style="text-align:left"><span ng-non-bindable=""><code>Shift+Space</code></span></td> |
| 79 | +<td style="text-align:left">Same as <span ng-non-bindable=""><code>Shift+Enter</code></span></td> |
| 80 | +</tr> |
| 81 | +</tbody> |
| 82 | +</table> |
| 83 | +</div> |
42 | 84 | <p> |
43 | 85 | You can leave comments about the tree here<br /> |
44 | 86 | <a href="https://bypassmobile.atlassian.net/wiki/display/PROD/Tree+live+demo">Confluence Doc Link</a> |
|
0 commit comments