ng-cut
توجيه AngularJS
مثال
نفِّذ تعبيرًا عندما يتم قص نص حقل الإدخال:
<input ng-cut="count = count + 1" ng-init="count=0" value="Cut this text"
/>
التعريف والاستخدام
يخبر ng-cut
التوجيه AngularJS بما يجب فعله عند قص نص عنصر HTML.
ng-cut
لن يتجاوز التوجيه من AngularJS حدث القطع الأصلي للعنصر ، وسيتم تنفيذ كل من التعبير ng-cut
وحدث القطع الأصلي.
بناء الجملة
<element ng-cut="expression"></element>
مدعوم من قبل <A> ، <input> ، <select> ، <textarea> ، وكائن النافذة.
قيمه المعامل
Value | Description |
---|---|
expression | An expression to execute when the text of an element is being cut. |