Pages

Jun 17, 2017

Tutorial: Create Dropdown menu for Labels widget


<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<select style='width:100%' onchange='location=this.options[this.selectedIndex].value;'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<b:loop values='data:labels' var='label'>
<option>Click to choose a label</option>
<option expr:value='data:label.url'><data:label.name/>
</b:includable>
(<data:label.count/>)
</option> </b:loop>
<b:include name='quickedit'/>
</select> </div>
</b:widget>
(copy paste this code)
kredit : bloggersentral


0 comments:

Catat Ulasan

Segala komen adalah hak dan tanggungjawab anda sendiri!!!
All comments are your own right and responsibility.!!!