Browse Source

Allow global attributes to get merged in.

mscherer 3 years ago
parent
commit
43101467e0
1 changed files with 6 additions and 1 deletions
  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',
         ...
     ],
 ],