Skip to content

pantoken-root / formats/interactions/src / initInPlaceEdit

Funktio: initInPlaceEdit() ​

initInPlaceEdit(host, dispatchOn, options?): void

Yhdistä contenteditable-kenttä klikkaamalla muokattavan commit-/revert-käyttäytymisen toteuttamiseksi. Enter vahvistaa, Escape peruuttaa; blur (fokus pois) myös vahvistaa, jos arvo muuttui. Lähettää pulppuavan change CustomEventin, jossa on detail.value, commitin yhteydessä.

CSS: host = .instui-in-place-edit elementti (joka ON contenteditable) WC: host = shadow .instui-in-place-edit span

Parametrit ​

host ​

HTMLElement

dispatchOn ​

HTMLElement

options? ​

InPlaceEditOptions = {}

Palauttaa ​

void