标题栏组件,常用作页头、标题等。
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default" >
<h2 class="am-titlebar-title ">
栏目标题
</h2>
<nav class="am-titlebar-nav">
<a href="#more">more »</a>
</nav>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default" >
<h2 class="am-titlebar-title ">
<img src="http://s.amazeui.org/media/i/brand/amazeui-b.png"/>
</h2>
<nav class="am-titlebar-nav">
<a href="#more">more »</a>
</nav>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi" >
<h2 class="am-titlebar-title ">
栏目标题
</h2>
<nav class="am-titlebar-nav">
<a href="#more">more »</a>
</nav>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi" >
<h2 class="am-titlebar-title ">
科技频道
</h2>
<nav class="am-titlebar-nav">
<a href="#more-1">手机</a>
<a href="#more-2">数码</a>
<a href="#more-3">影音</a>
</nav>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-cols" >
<h2 class="am-titlebar-title ">
<a href="#wtf">栏目标题</a>
</h2>
<nav class="am-titlebar-nav">
<a href="#c1">子栏目</a>
<a href="#c2">子栏目</a>
<a href="#c3">子栏目</a>
</nav>
</div>
<body>
区域;本组件 Handlebars partial 名称为 titlebar
,使用细节参照折叠面板组件。
var data = {
"title": "", // 主标题
"link": "", // 主标题链接,可选
"nav": [ // 右侧附加链接,可以为多个
{
"link": "",
"title": "",
"className": ""
}
]
};
return data;
{
"id": "",
"className": "",
"theme": "",
"options": null,
"content": {
"title": "",
"link": "",
"className": "",
"nav": [
{
"link": "",
"title": "",
"className": ""
}
]
}
}