Readouble

Livewire v3 wire:ignore

wire:ignore

Livewire がページを更新する機能は、Livewire を「ライブ」たらしめるものですが、Livewire がページの一部分を更新しないようにしたい場合があります。Livewire's ability to make updates to the page is what makes it "live", however, there are times when you might want to prevent Livewire from updating a portion of the page.

このような場合、wire:ignore ディレクティブを使用して、Livewire に特定の要素の内容を無視するように指示できます。たとえリクエスト間で変更されたとしてもです。In these cases, you can use the wire:ignore directive to instruct Livewire to ignore the contents of a particular element, even if they change between requests.

これは、カスタムフォーム入力などで、サードパーティの JavaScript ライブラリを使用する場合に最も役立ちます。This is most useful in the context of working with third-party javascript libraries for custom form inputs and such.

以下は、サードパーティライブラリで使用される要素を wire:ignore で囲み、Livewire がライブラリによって生成された HTML を改ざんしないようにする例です。Below is an example of wrapping an element used by a third-party library in wire:ignore so that Livewire doesn't tamper with the HTML generated by the library:

<form>
    <!-- ... -->

    <div wire:ignore>
        <!-- この要素は、初期化のためにサードパーティライブラリから -->
        <!-- 参照されます... -->
        <input id="id-for-date-picker-library">
    </div>

    <!-- ... -->
</form>

wire:ignore.self を使用して、ルート要素の内容の変更を監視するのではなく、属性の変更のみを無視するように Livewire に指示することもできます。You can also instruct Livewire to only ignore changes to attributes of the root element rather than observing changes to its contents using wire:ignore.self.

<div wire:ignore.self>
    <!-- ... -->
</div>

章選択

パッケージ

設定

バージョン変更
linkv3 linkv2
明暗テーマ
light_mode
dark_mode
brightness_auto システム設定に合わせる
テーマ選択
photo_size_select_actual デフォルト
photo_size_select_actual モノクローム(白黒)
photo_size_select_actual Solarized風
photo_size_select_actual GitHub風(青ベース)
photo_size_select_actual Viva(黄緑ベース)
photo_size_select_actual Happy(紫ベース)
photo_size_select_actual Mint(緑ベース)
コードハイライトテーマ選択

明暗テーマごとに、コードハイライトのテーマを指定できます。

テーマ配色確認
スクリーン表示幅
640px
80%
90%
100%

768px以上の幅があるときのドキュメント部分表示幅です。

インデント
無し
1rem
2rem
3rem
原文確認
原文を全行表示
原文を一行ずつ表示
使用しない

※ 段落末のEボタンへカーソルオンで原文をPopupします。

Diff表示形式
色分けのみで区別
行頭の±で区別
削除線と追記で区別

※ [tl!…]形式の挿入削除行の表示形式です。

テストコード表示
両コード表示
Pestのみ表示
PHPUnitのみ表示
OS表示
全OS表示
macOSのみ表示
windowsのみ表示
linuxのみ表示
JSフレームワーク
両フレームワーク
Reactのみ表示
Vueのみ表示
JSのみ表示

(JSが存在しない場合は、他を全表示)

和文変換

対象文字列と置換文字列を半角スペースで区切ってください。(最大5組各10文字まで)

本文フォント

総称名以外はCSSと同様に、"〜"でエスケープしてください。

コードフォント

総称名以外はCSSと同様に、"〜"でエスケープしてください。

保存内容リセット

localStrageに保存してある設定項目をすべて削除し、デフォルト状態へ戻します。

ヘッダー項目移動

キーボード操作