Skip to content

pantoken-root / formats/interactions/src / initTruncateAuto

Swyddogaeth: initTruncateAuto() ​

initTruncateAuto(host, target, options?): TruncateAutoHandle

Cadw --lines yn gyson â'r uchder sydd ar gael ar gyfer targed torrwch sy'n cael ei gyfyngu'n awtomatig.

  • Defnydd CSS: pasiwch yr un elfen fel host a target.
  • Defnydd cydran-gwe: pasiwch westeiwr yr elfen wedi'i haddasu + span targed torrwch y cysgod.

Paramedrau ​

host ​

HTMLElement

target ​

HTMLElement

options? ​

TruncateAutoOptions

Yn dychwelyd ​

TruncateAutoHandle