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?

view count

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

CommentFileSizeAuthor
modal-view.png179.95 KBbavramor
Command icon 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

    bavramor created an issue. See original summary.

    bavramor’s picture

    Issue summary: View changes
    bavramor’s picture

    Component: Documentation » User interface