拖曳時更新

範例

想要直接查看實作方式嗎?請參考以下範例:

下方的 API 說明將描述如何使用 update-on-drag 功能。

選項

onDrag

ts
onDrag: (instance: Ranger<TTrackElement>) => void
onDrag: (instance: Ranger<TTrackElement>) => void

當拖曳操作柄 (handle) 時會呼叫此函式

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.