Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the section header or change tableview style #1082

Open
MarcSteven opened this issue Jul 13, 2021 · 6 comments
Open

How to change the section header or change tableview style #1082

MarcSteven opened this issue Jul 13, 2021 · 6 comments

Comments

@MarcSteven
Copy link

@mats-claassen I reviewed all the docs about the framework, but cannot find a solution to change the section height .
It's so normal in the project, so does it support it ? And then I want to change the TableView style.

@mats-claassen
Copy link
Member

Follow this Readme section to change the header of a section.

XLForm uses a tableView so you can use all delegate methods of it

@MarcSteven
Copy link
Author

@mats-claassen So at the first time you should have a header view for section ,right?

@mats-claassen
Copy link
Member

You can use that to set a header view for each section yes

@MarcSteven
Copy link
Author

But if I want to make section header -same , how to do , for instance I have more rows -same layout but different data, so can I reuse the row? @mats-claassen

@mats-claassen
Copy link
Member

I do not understand what you want to achieve but keep in mind that as XLForm uses UITableView underneath, you can achieve pretty much everything that you can with UITableView only (apart from row reuse). So if you want multiple section headers to be the same view but with different data, you can just do it using the functions linked above, just as you would do for an UITableView

@MarcSteven
Copy link
Author

Yeah thank for your info, so perhaps should add doc or examples to help the people to use it. -add more features to do instead of UIOllectionview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants