2016-08-04 6 views
1

現在4000文字を表示しているuib-popoverがあります。そのpopoverに100文字(textoverflowプロパティなど)だけを表示するにはどうすればよいですか? enter image description hereのスクリーンショットもご覧ください。ここUib-popoverは制限された文字を表示する必要があります

は私のhtmlコードです:ここで

<i class="{{::prefix}}_TableCol_PrescriptionList_Notes_Text_OfficeComments fa fa-comment" 
        ng-show="prescription.officeNotes && showComments" uib-popover="Office Comments: {{ prescription.officeNotes }}" popover-placement="top" 
        popover-trigger="mouseenter" popover-animation="0" 
        ng-click="!prescription.disabledDueToSPM && showIconData(prescription, $event, 'officeNotes')"></i> 

は私のcssファイルのコードがある:あなたのHTMLタグの属性については

.popover.top { 
    margin-top: -5px !important; 
    font-size: 9pt; 
    max-width: 500px !important; 
} 

答えて

0

limitToを使う:

uib-popover="Office Comments: {{ prescription.officeNotes | limitTo : 100 }}" 
+0

おかげで働いています: –

+0

聞いてよかった!良い質問への答えを受け入れるためのアップヴォートを持っています。 –

関連する問題