edit-expression.html 1.2 KB

12345678910111213141516171819202122232425
  1. <span ng-show="ex.t=='exp'">
  2. (<span ng-repeat="ex in ex.exp">
  3. {{ex}}
  4. <span edit-in-place-var-value='ex.v' type='type'></span>
  5. </span>
  6. <span class="dropdown">
  7. <button class="btn btn-mini" data-toggle="dropdown"><i class="icon icon-align-justify"></i></button>
  8. <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
  9. <li><a role="menuitem" ng-click="addElVar(ex.exp)">Variável</a></li>
  10. <li><a role="menuitem" ng-click="addElVal(ex.exp)">Valor</a></li>
  11. <li><a role="menuitem" ng-click="addElExpB(ex.exp)">Expressão Booleana</a></li>
  12. </ul>
  13. </span>)
  14. </span>
  15. <span ng-hide="ex.o==''">&nbsp;<span select-operator="ex.o" ex="ex" select-model="ex.v" select-vars="program.functions[currentFunction].vars" type="type"></span>&nbsp;</span>
  16. <span ng-show="ex.t=='val'">
  17. <span edit-in-place-var-value='ex.v' type='type'></span>
  18. </span>
  19. <span ng-show="ex.t=='var'">
  20. <span select-variable-expression="ex.v" ex="ex" vars="vars" type="type"></span>
  21. </span>
  22. <span ng-show="ex.t=='expB'">
  23. <span boolean-expression="ex.v" ex="ex" vars="vars"></span>
  24. </span>