ModalFrame

モジュールパス: /alier_sys/Popup.js

--- config: class: hideEmptyMembersBox: true --- classDiagram direction LR ProtoViewLogic <|-- ViewLogic ViewLogic <|-- PopupFrame PopupFrame <|-- ModalFrame link ViewLogic "/ApplicationFrameworkReferences/Components/View/viewlogic" link ProtoViewLogic "/ApplicationFrameworkReferences/Components/View/protoviewlogic" link PopupFrame "../frame"

概要


モーダルポップアップのフレームであり、ポップアップのコンテンツとして PopupContainer を受け取るクラスです。

メソッド


オーバーライド

  • loadContainer(): 継承元の loadContainer() の処理後に ViewElement が存在することを確認する処理を追加しています。そのため引数のHTMLには <alier-view> タグが必要です。
  • messageHandler(): メッセージ { id: "close" }{ id: "modalOverlay" } を受け取る処理を追加しています。そのため派生クラスでオーバーライドする際は super.messageHandler を呼ぶ必要があります。

attachPopup()

  • 受け取ったポップアップのコンテンツをフレームのエレメントにアタッチします。

プロパティ


envelope

ポップアップの結果を待つための thenable なオブジェクトです。

Envelope

詳細

ポップアップを閉じたときに結果で解決されます。