Anonymous user
Module:Template test case: Difference between revisions
Added notcollapsed functionality (set _notcollapsed to 'yes' to allow collapsible test cases to start not collapsed)
(add renderCells(), needs testing) |
(Added notcollapsed functionality (set _notcollapsed to 'yes' to allow collapsible test cases to start not collapsed)) |
||
Line 211:
generalOptions.showcaption = yesno(generalOptions.showcaption) ~= false
generalOptions.collapsible = yesno(generalOptions.collapsible)
generalOptions.notcollapsed = yesno(generalOptions.notcollapsed) ~= true
generalOptions.wantdiff = yesno(generalOptions.wantdiff)
obj.options = generalOptions
Line 346 ⟶ 347:
if self.options.wantdiff then
root
:addClass('mw-collapsible
if self.options.notcollapsed then
root
end
root
:css('background-color', 'transparent')
:css('width', '100%')
Line 364 ⟶ 370:
root
:addClass('mw-collapsible')
if self.options.notcollapsed then
▲ :addClass(isEqual and 'mw-collapsed' or nil)
root
:addClass('mw-collapsed')
end
root
:css('background-color', 'transparent')
:css('width', '100%')
|