Skip to content

pantoken / formats/interactions/src / initInPlaceEdit

Mahi: initInPlaceEdit()

initInPlaceEdit(host, dispatchOn): void

Whakaritea he mara contenteditable mō te whanonga 'pā-ki-te-whakatika' hei whakaū/whakahoki. Ka whakaū mā te pēhi Enter, ka whakahoki mā te pēhi Escape; ka whakaū anō hoki mēnā i rerekē te uara ina ngaro te aro (blur). Ka tuku he change CustomEvent e peke ana (bubbling) me detail.value i te wā e whakaū ana.

CSS: host = .instui-in-place-edit element (ko te mea contenteditable) WC: host = shadow .instui-in-place-edit span

Ngā Tawhā

host

HTMLElement

dispatchOn

HTMLElement

Whakahokia

void