Skip to content

pantoken-root / formats/interactions/src / initTruncateAuto

Fonksiyon: initTruncateAuto() ​

initTruncateAuto(host, target, options?): TruncateAutoHandle

Otomatik sınırlandırılmış bir kırpma hedefi için kullanılabilir yükseklikle --lines'ı senkron tutun.

  • CSS kullanımı: aynı elementi host ve target olarak iletin.
  • Web-bileşeni kullanımı: özel element hostunu ve gölgede (shadow) bulunan kırpma hedefi spanını iletin.

Parametreler ​

host ​

HTMLElement

target ​

HTMLElement

options? ​

TruncateAutoOptions

Döndürür ​

TruncateAutoHandle