mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 12:35:48 +00:00
[Search] Display search items
The search view now very rudimentarily displays some 'search-item's.
This commit is contained in:
parent
845b9a2faa
commit
32eaf3893a
@ -17,6 +17,14 @@
|
||||
"implementation": "SearchController.js",
|
||||
"depends": [ "$scope" ]
|
||||
}
|
||||
],
|
||||
"representations": [
|
||||
{
|
||||
"key": "search-item",
|
||||
"templateUrl": "templates/search-item.html",
|
||||
"uses": [ "type", "action" ],
|
||||
"gestures": [ "info", "menu" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -21,7 +21,8 @@
|
||||
-->
|
||||
<!-- Based on grid-item -->
|
||||
<!-- For selected, add class 'selected' to outer div -->
|
||||
<div class='item grid-item' ng-click='action.perform("navigate")'>
|
||||
<div class='item' ng-click='action.perform("navigate")'>
|
||||
ITEM
|
||||
<div class="contents abs">
|
||||
<div class='top-bar bar abs'>
|
||||
<div class='left abs'>
|
||||
|
@ -21,18 +21,29 @@
|
||||
-->
|
||||
<!-- Based on items -->
|
||||
<div class='items-holder grid abs'>
|
||||
|
||||
<!-- Search bar -->
|
||||
<div id="all">
|
||||
<div>
|
||||
<form>
|
||||
Search in this folder: <br>
|
||||
<input type="text" name="searchform">
|
||||
<input type="submit" value="Search">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- some spacing -->
|
||||
<div style="height: 20px"></div>
|
||||
|
||||
<!-- Results list -->
|
||||
<mct-representation key="'search-item'"
|
||||
ng-repeat="childObject in composition"
|
||||
mct-object="childObject">
|
||||
</mct-representation>
|
||||
<ul>
|
||||
<li>
|
||||
<mct-representation key="'search-item'"><!--
|
||||
ng-repeat="childObject in composition"
|
||||
mct-object="childObject"--></mct-representation>
|
||||
</li>
|
||||
<li>
|
||||
<mct-representation key="'search-item'"></mct-representation>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user