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

Don't render title row when title is empty #385

Open
meowgorithm opened this issue Aug 23, 2024 · 1 comment
Open

Don't render title row when title is empty #385

meowgorithm opened this issue Aug 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@meowgorithm
Copy link
Member

I've run into this a few times where the context for the UI is presented elsewhere and we really just need the interactive portion of the component.

@meowgorithm meowgorithm added the enhancement New feature or request label Aug 23, 2024
@jonas-grgt
Copy link

@meowgorithm I believe this has already been implemented at least for field_input.go as the View method contains the following:

	if i.title.val != "" || i.title.fn != nil {
		sb.WriteString(styles.Title.Render(i.title.val))
		if !i.inline {
			sb.WriteString("\n")
		}
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants