NLeSC/Cesium-NcWMS

View on GitHub
app/scripts/customgraph/customgraph.directive.html

Summary

Maintainability
Test Coverage
<div ng-hide='customgraph.mobile' class="customgraphContainer">
  <div class="interface-visible interface-clickable" >
    <button ng-click="customgraph.toggleActivated()" class="icon-big graph-icon" ng-class="{active: customgraph.activated}" title="Graph"></button>
    <div ng-show="customgraph.activated">
      <a data-toggle="dropdown" class="ontop-dropdown" href="#">{{ customgraph.selectedLabel }} <b class="caret"></b></a>
      <ul class="dropdown-menu customgraph-dropdown-menu" role="menu">
        <li>
          <a ng-click=customgraph.selectDefaultDataset()>Follow the selected colormap dataset.</a>
        </li>
        <li ng-repeat="dataset in customgraph.getDatasets()">
          <a ng-click=customgraph.selectDataset(dataset)>{{dataset.label}}</a>
        </li>
      </ul>
      <div class="customgraph-log-div">log? <input type="checkbox" ng-model="customgraph.logarithmic" ng-change="customgraph.toggleLogarithmic()"></div>
      <div class="customgraph-err-div">{{customgraph.errorMessage}}</div>
    </div>
  </div>
  <div ng-show="customgraph.activated" class="interface-visible interface-clickthrough"></div>
</div>