Skip to content

pantoken / formats/interactions/src / initTruncateAuto

फंक्शन: initTruncateAuto()

initTruncateAuto(host, target, options?): TruncateAutoHandle

ऑटो-क्लैम्प किए गए ट्रंकैट लक्ष्य के लिए उपलब्ध ऊँचाई के साथ --lines को सिंक्रनाइज़ रखें।

  • CSS उपयोग: host और target के रूप में वही एलिमेंट पास करें।
  • वेब-कम्पोनेंट उपयोग: कस्टम-एलिमेंट होस्ट + शैडो ट्रंकैट लक्ष्य span पास करें।

पैरामीटर

host

HTMLElement

target

HTMLElement

options?

TruncateAutoOptions

वापसी

TruncateAutoHandle