Ver Fonte

New data-attribute "label" for links

Creates a <abbr> element
@soyjavi há 14 anos atrás
pai
commit
cf4d7e1697
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      src/attributes/Lungo.Attributes.Data.js

+ 5 - 0
src/attributes/Lungo.Attributes.Data.js

@@ -43,5 +43,10 @@ LUNGO.Attributes.Data = {
         tag: 'back',
         selector: 'header, footer',
         html: '<a href="#back" data-target="section" class="onleft button default"><span class="icon {{value}}"></span></a>'
+    },
+    Label: {
+        tag: 'label',
+        selector: 'a',
+        html: '<abbr>{{value}}</abbr>'
     }
 };