Hallo,
If I click on an entry in my table column "usage count" in my admin view, a new view opens which is displayed in a modal window. Unfortunately, my titles are always very long and the window is therefore too small. Where can I adjust this?

ow can I overwrite this, is that somehow possible? The 700 width seems to be the problem?
<code>protected function renderAsLink($alter, $text, $tokens) {
// See note in parent " Allow the addition of arbitrary attributes to...".
$alter['link_attributes'] = [
'class' => 'use-ajax',
'data-dialog-type' => 'modal',
'data-dialog-options' => Json::encode([
'width' => 700,
]),
];
return parent::renderAsLink($alter, $text, $tokens);
}
}
Thx for the help
Bavra
| Comment | File | Size | Author |
|---|---|---|---|
| modal-view.png | 179.95 KB | bavramor |
Issue fork entity_usage_views_field-3438092
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bavramor commentedComment #3
bavramor commented