blocs/admin: ボタンコンポーネント
blocs/admin: ボタンコンポーネント
resources/views/admin/autoinclude の Auto Include 機能で、さまざまなボタンを簡単に表示できます。
定義済みのボタンブロック
| ブロック名 |
用途 |
| button_href |
通常のリンクボタン |
| button_back |
戻るリンクボタン |
| button_create |
新規登録用のリンクボタン |
| button |
通常のボタン |
| button_primary |
モーダルを開く青色の主ボタン |
| button_info |
モーダルを開く水色の情報ボタン |
| button_success |
モーダルを開く緑色の成功ボタン |
| button_danger |
モーダルを開く赤色の警告ボタン |
| button_warning |
モーダルを開く黄色の注意ボタン |
カスタマイズ変数
| 引数 |
説明 |
| $buttonHref |
リンクボタンのリンク先 URL |
| $buttonType |
通常ボタンのタイプ |
| $buttonClass |
ボタンに適用する CSS クラス |
| $buttonIcon |
表示するアイコン(Font Awesome) |
| $buttonLabel |
ボタンに表示するテキスト |
サンプルコード
<!--
data-include="button_href"
$buttonHref=route("admin.user.create")
$buttonClass="btn btn-primary"
$buttonIcon="fa-solid fa-plus"
$buttonLabel="新規作成"
-->