HTML <menu> etiketi Özellik
Örnek
Etiket özelliğinin kullanımı:
<menu type="context" id="mymenu">
<menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">
</menuitem>
<menu label="Share on...">
<menuitem label="Twitter" icon="ico_twitter.png"
onclick="window.open('//twitter.com/intent/tweet?text='+window.location.href);">
</menuitem>
<menuitem label="Facebook" icon="ico_facebook.png"
onclick="window.open('//facebook.com/sharer/sharer.php?u='+window.location.href);">
</menuitem>
</menu>
<menuitem label="Email This Page"
onclick="window.location='mailto:?body='+window.location.href;"></menuitem>
</menu>
Tanım ve Kullanım
Label özelliği, menü için görünür bir etiket belirtir.
Label özniteliği genellikle bir menü içindeki iç içe menüleri etiketlemek için kullanılır.
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Attribute | |||||
---|---|---|---|---|---|
label | Not supported | Not supported | 8.0 | Not supported | Not supported |
Sözdizimi
<menu label="text">
Özellik Değerleri
Value | Description |
---|---|
text | Specifies a visible label for the menu |
❮ HTML <menu> etiketi