KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to set Columns Titles for resource tables #3111

Closed Eugene opened this topic on on Jul 30, 2023 - 4 comments

Eugene commented on Jul 30, 2023

For example Customers in Admin Section? I think I miss something but I cannot find the place where you set the names of the columns

KoolReport commented on Jul 31, 2023

You use the label property:

Text::create("country")->label("Home Country")

Let us know if you need further assistance.

Eugene commented on Jul 31, 2023

Ok, it is clear but you don't use this way in your demo but your columns have readable names. So how it works there?

KoolReport commented on Jul 31, 2023

Well, we save some time for devs, if label is not set, we try to guess the label from the column name, for example, the column name is "userId" or "user_id", we will generate "User Id" label.

Eugene commented on Jul 31, 2023

Nice :)) thank you

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

Dashboard