查看“模块:RichTab”的源代码
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local p = {}
function p.render_template(html, params)
local div = html:tag('div')
local p1 = div:tag('div'):addClass('nav'):addClass(params.tabClass):attr('role', 'tablist')
for i = 1, #params.tabBar do
p1:tag('li'):attr('role', 'presentation'):addClass(params.tabBar[i].tabState)
:tag('a'):attr('href', '#'..tostring(params.tabBar[i].tabId))
:attr('aria-controls', tostring(params.tabBar[i].tabId))
:attr('role', 'tab'):attr('data-toggle', 'tab'):wikitext(params.tabBar[i].tabName)
:done()
:done()
end
p1:done()
local p2 = div:tag('tab-content')
for i = 1, #params.tabBar do
end
p2:done()
div:done()
end
000
1:0
该页面使用的模板:
返回至模块:RichTab。