I am trying to use easyui to do mobile projects. Here is the sample code:
<div class="easyui-navpanel">
<header>
<div class="m-toolbar">
<span class="m-title">title</span>
<div class="m-right">
<a id="sm"></a>
</div>
</div>
</header>
</div>
<script type="text/javascript">
var data = [{
text: 'Item1',
iconCls: 'icon-more',
state: 'open',
children: [{
text: 'Option1'
},{
text: 'Option2'
},{
text: 'Option3',
children: [{
text: 'Option31'
},{
text: 'Option32'
}]
}]
}];
$('#sm').sidemenu({
width:20,
height:30,
border:false,
data:data,
collapsed:true
});
</script>
I have a few questions:
1. How can I make the background of sidemenu transparent?
2. Can I show or hide sidemenu by other button clicks?
3. Can sidemenu be bound to the menu attribute of the menubutton component?
Looking forward to your answer, thank you very much!