浏览代码

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',
         ...
     ],
 ],