2022.2

Table Of Contents
l
SwitchtoSourceview.
l
Addthedata-keep-when-emptyattributetotherespective<tr>element(s).Forexample:
<tr data-repeat="Instruments" data-keep-when-empty="">.
Tolocatearowyoucanselectitonthe"Outlinepane"onpage977.
StylingaDynamicTable
TheInsertDynamicTablewizardletsyouselectastyleforthetable.
TablesarestyledviaCSS:whenthewizardaddsaTable,thechosentheme'sclassisaddedtothe
<table>element,and,ifitdoesn'texistyet,thedefault_table_styles.cssfileisaddedtotheresources
ofthetemplate.ThisCSSfilecontainstheCSSrulesforalltablethemes.(See:"Stylingtemplateswith
CSSfiles"onpage672.)
Tochangethetheme,youcouldsimplyselectthetableandchangeitsclassonthe"Attributespane"on
page969.
Theavailablethemeclassesare:table--grid,table--colgrid,table--minimalist,table--dark,table--light,
table--striped,table--topbar,table--portfolio.(Notethedoubledashintheclassname.)
Thedefault_table_styles.cssfileisread-only,butofcourseyoucouldoverwritestylesandcreateyour
owntheme,usingyourownstyle sheets.
Regardless,youcanchangethefont,fontsizeandcolor,theborders,thecellpadding(thedistance
betweentheedgeofthecellanditscontent),andthebackgroundcolororimageofthetableandits
cells,viatheFormattingdialog.
Bothapproachesareexplainedinthetopic:"Stylingatable"onpage689.
DynamicTablesarebeststyledviaCSS(see"Viaastylesheet"onpage690),fortworeasons:
l
Withlocalformatting,allrowsthatareaddedonthefly(inPreviewmodeandinoutput)willlook
exactlythesameasthefirstone.Alternatingrowcolors,forexample,indynamicallyaddedrows
canonlybedoneviaCSS.
l
Whengeneratingoutputfromatemplate,aDynamicTableiscreatedslightlyfasterwhenit's
styledviaCascadingStyleSheetsthanwhenit'sstyledwithlocalformatting.
HereareafewtipsonhowtotargetrowsandcellsinaDynamicTable.
l
ThereareCSS selectorswithwhichyoucantargeteveryso-maniestrow(see"Stylingthefirst,
lastandnthrows"onpage691).
l
Intheoutput,DynamicTablerowsarerepeatedincludinganyclassesthataresetontherow
andonitscontents.
Page 753