瀏覽代碼

New data-attribute "label" for links

Creates a <abbr> element
@soyjavi 14 年之前
父節點
當前提交
973b03fa31
共有 1 個文件被更改,包括 5 次插入0 次删除
  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>'
     }
 };