boolean-expression - Copia.html 984 B

123456789101112131415161718192021222324
  1. <span class="select-variable-value" ng-class="{'need-to-set': value==''}">
  2. (
  3. <span select-variable="value.op1.v" select-vars="vars" type="''"></span>
  4. <span ng-show="value.op1.v==''"> « selecione uma variável</span>
  5. <span class="dropdown select-variable-value" ng-hide="value.op1.v==''">
  6. <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
  7. <span ng-hide="value==''">{{operators[value.op].display}}</span>
  8. </a>
  9. <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
  10. <li ng-repeat="op in operators" ng-show="op.compatible.indexOf(vars[value.op1.v].type)>=0">
  11. <a ng-click="setValue(op.id)">{{op.display}}</a>
  12. </li>
  13. </ul>
  14. </span>
  15. <span ng-hide="value.op1.v==''">
  16. <!--
  17. TODO: mudar para select-variable-value,
  18. um componente a fazer que permite escolher uma variavel ou um valor
  19. -->
  20. <span select-variable="value.op2.v" select-vars="vars" type="vars[value.op1.v].type"></span>
  21. </span>
  22. )
  23. </span>