- Issue created by @bavramor
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
Active
3.0
User interface