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

Allow rendering HTML in CheckboxList label #14717

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Conversation

CodeWithDennis
Copy link
Contributor

@CodeWithDennis CodeWithDennis commented Nov 5, 2024

Description

Allows you to use allowHtml() with the CheckboxList.

$this->allowHtml()
    ->getOptionLabelFromRecordUsing(function (Model $record) {
        return view('custom-view', [])->render();
    });

Visual changes

Scherm­afbeelding 2024-11-05 om 19 37 43

Scherm­afbeelding 2024-11-05 om 19 35 54

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@CodeWithDennis CodeWithDennis changed the title Allow rendering HTML in CheckboxList component Allow rendering HTML in CheckboxList label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant