Closed HawtDogFlvrWtr closed 1 year ago
Never mind. For anyone looking for the same answer...
After digging through the code more, I discovered that it's no longer the case that it automatically says yes or no. You have to change the setting in config/laravel-table.php
for active
and inactive
.
I'm going to submit a change request that updates the text to reflect this.
Hi @HawtDogFlvrWtr, this package is shipped with FontAwesome 5.
As so, the built-in BooleanFormatter
does only display a FontAwesome active or inactive icon, according to the field value.
If you do not work with FontAwesome, you easily can publish and override the default config to define other icons.
In case you want to display anything else than icons, you also can create your own formatter to do so.
Keep in mind that you may use built-in elements as-is if you think they're convenient for you, but you may also use them as examples to create your own!
Database: Postgres Issue: Column 'Active' is data type boolean, but when formatting with BooleanFormatter, the value returned is blank. The class is setting text-danger and text-success correctly though. Do I have to populate the yes and no myself? It says in the function description that it does it automagically. I'm using standard bootstrap 5.2.3 to display the table. My Vers.
Table: