【发布时间】:2018-04-06 09:34:37
【问题描述】:
我正在使用text-angular 指令来显示内容。现在,当用户将鼠标悬停在某些文本上时,我想在那里显示一个工具提示。
<div text-angular id="htmlEditorId" ng-class="totalOrphans == 0 ? 'add-heightTo-textEditor' : 'html-editor-container'" class="textcontent-modal"
spellcheck="false" ng-model="data.htmlDocument" ta-disabled="isEditingDisabled" ng-mouseup="doSomethingWithSelectedText($event)"
ng-onkeyup="doSomethingWithSelectedText($event)" name="editor1">
</div>
<span class="tooltiptext">Tooltip text</span>
我尝试使用ng-mouseover 方法并尝试添加工具提示
$scope.show_Tool_Tip_OnHover = function(event) {
if(event.target.nodeName === "SPAN"){
$scope.show_tool_tip = true;
} else {
$scope.show_tool_tip = false;
}
}
现在,但是当我将鼠标悬停在文本上时,我没有看到任何工具提示。指令是 ->
textangular
谁能帮我解决这个问题?
【问题讨论】:
标签: javascript jquery css angularjs html