2022.2

Table Of Contents
l
DynamicTablesandtheirrowsandcellshavesomespecialattributesthatcanbeusedas
selector.See:"ADynamicTable'sdata-attributes"onthenextpage.
Utility classes for text in a Dynamic Table
InordertostyletextinaDynamicTable,youcouldusesomeclassesforwhichtherearestylerulesin
thedefaultstylesheetforDynamicTables(default_table_styles.css).Theclassesare:
l
.u-text-left
l
.u-text-center
l
.u-text-right
l
.u-text-bold
l
.u-text-normal
l
.u-text-italic
TheseclasseswillbeappliedwhenyouchooseUse CSS utility classesasTextAlignmentmode
whencreatingatable.Tochangethealignmentafterthetablehasbeencreated,selectthecell(see
"Selectinganelement"onpage570)andthentypethedesiredclassinthe"Attributespane"on
page969.
NotethatifyouselectedVia inline stylesasTextAlignmentmodewhencreatingthetable,theutility
classeswon'twork,unlessyouremovetheinlinestylefirst.Inlinestylesalwaysgetappliedsincethey
aremorespecific.(Foranexplanationsee"UsingamorespecificCSSrule"onpage680.)
Changing styles based on a data field value
ChangingthestylesofaroworcellinaDynamicTable,basedonthevalueofadatafield,requiresa
script.See"UsingscriptsinDynamicTables"onpage835.
Resizing a Dynamic Table
TochangethewidthofaDynamicTableorofacolumninaDynamicTable,selectit(see"Selectingan
element"onpage570)andtypethedesiredwidthasapercentageintherespectivefieldonthe"Attrib-
utespane"onpage969.
Itisalsopossibletoresizecolumsviadrag-and-drop(inDesignmodeonly).Toallowforthis,selectthe
tableandchecktheoptionAllow ResizingontheAttributespane.
TheheightoftheDynamicTableisadjustedautomaticallytotheamountofdataaddedtoitinPreview
modeorwhengeneratingoutput.
Itishoweverpossibletochangetheheightoftherows:clickintherowandtypethedesiredheightin
therespectivefieldontheAttributespane.Alllineitemrowswillhavethesameheight.
Page 754