Inline Summaries
Hello,
I was wondering if there was a way to use the summeriser for tables in the row itself.
in my app I have 2 Models
Army.php and Unit.php
Armies have many Units and Units have 2 columns I want
points
and cost
I can get a summary at the bottom of the table for the total number of points or the total cost, but can I get one in the table row itself?
I'd like the Units column to say "Total Points" with a value of 165.
My table function
3 Replies
Answered my own question, sorry for the post.
how you realize summary in diferrents fields i need help summary 5 field to taxes in one fiel total taxes
so my
totalPoints
funciton in the Army
model does the calculations. the function
within the state
call is a callback with acess to the resource record. You can then do whatever calucaltions you want like