标题栏组件,常用作页头、标题等。
<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" class="">more »</a>
</nav>
</div>
<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default">
<h2 class="am-titlebar-title">
<img src="http://amazeui.b0.upaiyun.com/assets/i/brand/amazeui-b.png"
/>
</h2>
<nav class="am-titlebar-nav">
<a href="#more" class="">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" class="">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" class="">手机</a>
<a href="#more-2" class="">数码</a>
<a href="#more-3" class="">影音</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" class="">子栏目</a>
<a href="#c2" class="">子栏目</a>
<a href="#c3" class="">子栏目</a>
</nav>
</div>
<body>
区域;本组件 Handlebars partial 名称为 titlebar
,使用细节参照折叠面板组件。
var data = {
"title": "", // 主标题
"link": "", // 主标题链接,可选
"nav": [ // 右侧附加链接,可以为多个
{
"link": "",
"title": "",
"className": ""
}
]
};
return data;
var data = {
// 以下三项,可任意组合
"left": "", // Titlebar 左侧,可写 html 标签(可选)
"title": "", // Titlebar 中部,可写 html 标签(可选)
"right": "" // Titlebar 右侧,可写 html 标签(可选)
};
return data;
{
"id": "",
"className": "",
"theme": "",
"options": null,
"content": {
"title": "",
"link": "",
"nav": [
{
"link": "",
"title": "",
"className": ""
}
]
}
}
{
"id": "",
"className": "",
"theme": "",
"options": null,
"content": {
"left": "",
"title": "",
"right": ""
}
}