17,230
edits
(selector has to be a number because the js uses an array to store the selector values) |
(remove old classes) |
||
Line 19: | Line 19: | ||
local container = mw.html.create( 'div' ) | local container = mw.html.create( 'div' ) | ||
:attr( 'id', self.id ) | :attr( 'id', self.id ) | ||
:addClass( 'zdw-tabcontainer zdw-box | :addClass( 'zdw-tabcontainer zdw-box' ) | ||
if self.args.width then container:css( 'width', self.args.width .. 'px' ) end | if self.args.width then container:css( 'width', self.args.width .. 'px' ) end | ||
if self.args.height then container:css( 'height', self.args.height .. 'px' ) end | if self.args.height then container:css( 'height', self.args.height .. 'px' ) end |