Skip to content

Let GroupHeader Title be overridden by TitleAttribute when the group is a ToggleGroup - #11658

Open
QuackCola wants to merge 1 commit into
Facepunch:masterfrom
QuackCola:toggleGroupTittleAttribute
Open

Let GroupHeader Title be overridden by TitleAttribute when the group is a ToggleGroup #11658
QuackCola wants to merge 1 commit into
Facepunch:masterfrom
QuackCola:toggleGroupTittleAttribute

Conversation

@QuackCola

Copy link
Copy Markdown
Contributor

Summary

This pr adds a basic check so that a ToggleGroup can have its title overridden.

Motivation & Context

Without this simple patch you cant use ToggleGroup name that has space's since it relies on the name being the exact match to the accompanying bool property.

Implementation Details

Simple Check if TitleAttribute is present along with an additional check to fallback to the groupName if necessary.

Checklist

  • Code follows existing style and conventions
  • No unnecessary formatting or unrelated changes
  • Public APIs are documented (if applicable)
  • Unit tests added where applicable and all passing
  • I’m okay with this PR being rejected or requested to change 🙂

Will default to 'groupName' if the 'titleAttr.Value' happens to be null or just an empty string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant