CompositionEvent()
コンストラクターは新しい CompositionEvent
オブジェクトのインスタンスを作成します。
構文
myEvent = new CompositionEvent(typeArg, CompositionEventInit)
値
- typeArg
- イベントの名前を表す
DOMString
。 - CompositionEventInitOptional
CompositionEventInit
辞書オブジェクトは、次のメンバーを含むことができます:data
:CompositionEvent
オブジェクトのdata
属性を IME コンポジションにより生成された文字に初期化します。
補足:
CompositionEventInit
辞書は、UIEventInit
辞書から継承するため、そこで定義されたメンバーも受け入れます。
仕様
仕様書 | 策定状況 | 備考 |
---|---|---|
Document Object Model (DOM) Level 3 Events Specification CompositionEvent() の定義 |
廃止された | 初期定義。 |
ブラウザー実装状況
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
CompositionEvent
、これを構築するオブジェクトのインターフェイス。