Skip to content

Relax builders to take Renderable instead of HtmlString#5406

Merged
labkey-adam merged 4 commits into
developfrom
fb_renderable
Apr 7, 2024
Merged

Relax builders to take Renderable instead of HtmlString#5406
labkey-adam merged 4 commits into
developfrom
fb_renderable

Conversation

@labkey-adam
Copy link
Copy Markdown
Contributor

Rationale

Builder methods that take HTML as Renderable integrate better with DOM constructions, since they avoid unnecessary HtmlString conversion.

import org.labkey.api.settings.WriteableLookAndFeelProperties;
import org.labkey.api.util.*;
import org.labkey.api.util.Button;
import org.labkey.api.util.ConfigurationException;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someday we should standardize our import preferences in IntelliJ.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Susan made a change semi-recently to eliminate or greatly reduce importing *

@labkey-adam labkey-adam merged commit a062bf3 into develop Apr 7, 2024
@labkey-adam labkey-adam deleted the fb_renderable branch April 7, 2024 16:35
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.

3 participants