-
-
Notifications
You must be signed in to change notification settings - Fork 145
How to hide group title #482
Comments
In your style make the header transparent. [[FORMGroupHeaderView appearance] setHeaderBackgroundColor:[UIColor clearColor]]; We have an example that does this. Check Payment Demo. I hope this fixes your issue, otherwise feel free to reopen this issue. Have a nice day! |
Thank you! SO did not answer so I had to ask here. I assume it is not possible to set headerView transparent just of a single group? |
@annehiro It's not possible to make it transparent but you can make it the same color as your background color. [
{
"id":"group-id",
"styles":{
"background_color":"YOUR_HEX_BACKGROUND_COLOR"
},
"sections":[
{
"id":"section-0",
"fields":[
{
"id":"email",
"title":"Email",
"type":"email",
"input_type": "email",
"size":{
"width":100,
"height":1
}
}
]
}
]
}
] Could you share your StackOverflow question with me? |
The styling relies on If transparency support was added there, we could support it pretty easily in Form. I've seen that done with a fourth pair of hex values. Example: |
@annehiro Hi, I was wrong, you can just send any invalid HEX value to [
{
"id":"group-id",
"styles":{
"background_color":"clearcolor"
},
"sections":[
{
"id":"section-0",
"fields":[
{
"id":"email",
"title":"Email",
"type":"email",
"input_type": "email",
"size":{
"width":100,
"height":1
}
}
]
}
]
}
] |
@3lvis This is actually setting the form background color. The FORMGroupHeaderView background color is unchanged. |
Follow up on this. What I would like to do is completely hide the group header in some cases. I can use
If you see some value in being able to hide the group header, I can try to help with implementation. |
Is this possible?
The text was updated successfully, but these errors were encountered: