sortable-table
's data
attribute.args
attribute.
Tax Rate
%
Body Color
Footer Color
<style>
::shadow tbody .column-tax,
::shadow tbody .column-total {
color: {{'{{'}}args.totalcolor}};
}
</style>
<sortable-table
args='{ "tax":{{args.tax}}, "totalcolor":"{{args.totalcolor}}", "foottotalcolor":"{{args.foottotalcolor}}"}'
></sortable-table>
{{values | sum | currency}}
[
{fruit: 'apple', price: 1.29, weight: 12.4 },
{fruit: 'banana', price: 0.89, weight: 5.8 },
{fruit: 'grape', price: 3, weight: 3.1 },
{fruit: 'pear', price: 2.40, weight: 2.1 },
{fruit: 'strawberry', price: 3.99, weight: 3.5 }
]