Closed
Conversation
9d8220a to
e5ae645
Compare
e5ae645 to
2580c52
Compare
stlgaits
requested changes
Feb 5, 2025
| {% code lineNumbers="true" %} | ||
| ```php | ||
| <?php | ||
| // config/routes/ux_autocomplete.php |
Contributor
There was a problem hiding this comment.
Suggested change
| // config/routes/ux_autocomplete.php | |
| {% code lineNumbers="true" title="config/routes/ux_autocomplete.php" %} | |
| ```php | |
| <?php |
|
|
||
| public static function getType(): string | ||
| { | ||
| return self::class; // it will allow to use FQCN instead of a string key. |
Contributor
There was a problem hiding this comment.
Suggested change
| return self::class; // it will allow to use FQCN instead of a string key. | |
| return self::class; // this will allow us to use FQCN instead of a string key. |
| We also need to configure the Twig template for our new grid filter. | ||
|
|
||
| ```yaml | ||
| # config/packages/sylius_grid.yaml |
Contributor
There was a problem hiding this comment.
Place inside a code tag
{% code lineNumbers="true" title="config/packages/sylius_grid.yaml" %}
Suggested change
| # config/packages/sylius_grid.yaml | |
| {% code lineNumbers="true" title="config/packages/sylius_grid.yaml" %} | |
| ``yaml |
| filter: | ||
| 'App\Grid\Filter\SpeakerFilter': '@SyliusBootstrapAdminUi/shared/grid/filter/entity.html.twig' | ||
|
|
||
| ``` |
| ``` | ||
|
|
||
| Now our new grid filtered is configured, we can use it in a grid. | ||
|
|
Contributor
There was a problem hiding this comment.
Suggested change
| {% code lineNumbers="true" title="src/Grid/TalkGrid.php" %} |
Contributor
|
I've opened a GitBook PR to replace this one : Estelle's Oct 2 changes - entity autocompletes https://app.gitbook.com/o/fmYDcx6GlpT1jw8tUL38/s/RNAi9oQYTWFv4Vn5yZFm/~/changes/23/cookbook/admin_panel/using-autocompletes/~/overview |
Contributor
|
Closing as 21929b1 replaces it and has been merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #230