parent
d975067e13
commit
cef08a717c
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by Tim on 7/22/16.
|
||||
*/
|
||||
app.directive('ellipsisShow',function(){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
var textWrap = element.children().eq(0);
|
||||
var textHeight = textWrap[0].scrollHeight;
|
||||
console.log(textWrap[0].innerHTML);
|
||||
while (textHeight > 100) {
|
||||
textWrap[0].innerTEXT = "replaced";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in new issue