Skip to end of banner
Go to start of banner

Formatting the Auto Total Row for Numeric Columns

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

On this page

Overview

This page outlines an example of how to style the Auto Total row for numeric columns using the CSV macro, Table Plus macro, or Attachment Table macro, which are part of the Advanced Tables for Confluence add-on.

This example assumes your data itself contains the formatting you want, such as comma separators and dollar signs. The instructions below will ensure that when you choose to have an Auto Total row, it too is similarly styled.

Since release 5.4, there are more capabilities to control table display characteristics. Specifically, setting the table class (default is confluenceTable), table style, and row styles. See Common Table Capabilities for more details.

Macro Browser Input

Select this Macro

Macro Name

Any of the following:

  • CSV (Comma Separated Values)
  • Table Plus
  • Attachment Table
Macro Syntax

Any of the following:

  • {csv}
  • {table-plus}
  • {attachment-table}

Define these Parameters/Values 

This Auto Total row can be styled by setting the columnTypes parameter to:

Auto total rowselected
Column types
s,f"0,0",f"$0,0.00"

See Formatting Options for Numeric Rows for a full list of available formatting options.

Screenshot

 

Wiki Markup Input

For a table built using the CSV macro:

{csv:output=wiki|autoTotal=true|columnTypes=s,f"0,0",f"$0,0.00"}
"Item","Units","Revenue"
"Kazoos","1,368","$4,074.25"
"Accordions","445","$222,500.63"
"Mandolins","2,296","$1,033,200.00"
{csv} 

 

Example Result

Other Examples

Visit our full list of product examples for additional inspiration!

 


Find answers from the community.

Ask a question to the community.

Log a request with our support team.




Availability

 




Examples for this Add-on

 

  • No labels