Property Inspector - mononok/FlightSims GitHub Wiki

StreamDeckに組み込まれたHTML5プロパティインスペクターが、貴方のプラグインと
StreamDeckアプリケーションのプロパティペイン間での通信を可能にします。

標準HTML5をベースにしたPropertyInspectorなら、好きなようにアイテムを配置するのも簡単です。

Elgato製 https://developer.elgato.com/documentation/stream-deck/samples/pisamples/プラグインは
PropertyInspectorにて、全てのHTMLエレメントのデモを見ることができます。

General Operation

Adding elements

Supported Types

Interactivity

PI Lifecycle events

PropertyInspectorが閉じられるときにイベントが発生します。
このListenerを定義することができます。

  • beforeunload-event
    window.addEventListener('beforeunload', function (e) {
        e.preventDefault();
        sendValueToPlugin('propertyInspectorWillDisappear', 'property_inspector');
        // Don't set a returnValue to the event, otherwise Chromium with throw an error.
    });
  • pagehide-event
    /** the pagehide event is fired, when the view disappears */
    window.addEventListener('pagehide', function (event) {
        sendValueToPlugin('propertyInspectorPagehide', 'property_inspector');
    });
  • unload-event
    /** the unload event is fired, when the PI will finally disappears */
    window.addEventListener('unload', function (event) {
        sendValueToPlugin('propertyInspectorDisconnected', 'property_inspector');
    });

Sample Property Inspector

Debugging

chromeのデフォルトで、

http://localhost:23654/
が使用できる。
⚠️ **GitHub.com Fallback** ⚠️