You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
what i plan to achieve is an additional row with specific column to get the summary and some other column just show label
what i can achieve (or hack) is looks like this
Problem:
unable to summarize my field if at fields method are added with html tags or style with colors:
poc, when income is pure value, it return properly, when i add htmls it stop working as shown in picture above
want to add only label to particular column, like i want to add "Grand total" underneath No. column i only can hack it with summarizeFormat method as shown below, also it shows ":Grand Total" instead of "Grand Total":
public function summarizeFormat(): array
{
return [
'no.{sum}' => function ($value) {
return 'Grand Total';
},
...
Suggestion:
no idea what to suggest, maybe some method to add color to negative and positive value?
to hide colon maybe add this for someone who only wants to show Value of that summary
->withSum(
label: '',
header: false,
footer: true
showLabel: false),
maybe give more withXXXX() to be added, instead of withCount withSum etc but without any option just want to show label at footer like Grand Total label for that last row at "No." column, also make this withXXX() with no colon":" shown.
no idea what to suggest, maybe some method to add color to negative and positive value?
to hide colon maybe add this for someone who only wants to show Value of that summary
->withSum(
label: '',
header: false,
footer: true
showLabel: false),
maybe give more withXXXX() to be added, instead of withCount withSum etc but without any option just want to show label at footer like Grand Total label for that last row at "No." column, also make this withXXX() with no colon":" shown.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
v6.2.2
Livewire version
v3.6.1
Laravel version
v12.1.1
Which PHP version are you using?
PHP 8.4
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
what i plan to achieve is an additional row with specific column to get the summary and some other column just show label

what i can achieve (or hack) is looks like this

Problem:
poc, when income is pure value, it return properly, when i add htmls it stop working as shown in picture above
Suggestion:
no idea what to suggest, maybe some method to add color to negative and positive value?
to hide colon maybe add this for someone who only wants to show Value of that summary
->withSum(
label: '',
header: false,
footer: true
showLabel: false),
maybe give more withXXXX() to be added, instead of withCount withSum etc but without any option just want to show label at footer like Grand Total label for that last row at "No." column, also make this withXXX() with no colon":" shown.
->withEmptyLabel(
label: 'Grand Total',
header: false,
footer: true
)
what ends up i want to achieve is this:

Code snippets
How do you expect it to work?
Suggestion:
no idea what to suggest, maybe some method to add color to negative and positive value?
to hide colon maybe add this for someone who only wants to show Value of that summary
->withSum(
label: '',
header: false,
footer: true
showLabel: false),
maybe give more withXXXX() to be added, instead of withCount withSum etc but without any option just want to show label at footer like Grand Total label for that last row at "No." column, also make this withXXX() with no colon":" shown.
->withEmptyLabel(
label: 'Grand Total',
header: false,
footer: true
)
what ends up i want to achieve is this:

Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions