Skip to content

pantoken / formats/interactions/src / initInPlaceEdit

Fonksyon: initInPlaceEdit()

initInPlaceEdit(host, dispatchOn): void

Konekte yon chan contenteditable pou konpòtman klik-pou-modifye (commit/revert). Enter konfime (commit), Escape ranvèse (revert); blur tou konfime si valè a chanje. Lanse yon change CustomEvent k ap pwopaje ak detail.value sou commit.

CSS: host = .instui-in-place-edit element (ki SE contenteditable) WC: host = shadow .instui-in-place-edit span

Paramèt

host

HTMLElement

dispatchOn

HTMLElement

Retounen

void