ソースを参照

Allow global attributes to get merged in.

mscherer 3 年 前
コミット
43101467e0
1 ファイル変更6 行追加1 行削除
  1. 6 1
      docs/Helper/Icon.md

+ 6 - 1
docs/Helper/Icon.md

@@ -50,10 +50,15 @@ You can also set a global attributes config that would be merged in with every i
 ```php
 'Icon' => [
     'sets' => [
+        'material' => [
+            'attributes' => [
+                'data-custom' => 'some-custom-default',
+            ],
+        ],
         ...
     ],
     'attributes' => [
-        'data-custom' => 'some-default',
+        'data-default' => 'some-default',
         ...
     ],
 ],