skip to Main Content

How to break output of Listview in a new line in listview widget note

2

Answers


  1. Assuming your column name is "note" and it contains lines break, define it as follows:

    'note' => [
        'format' => 'raw',
        'value' => function ($model) {
            return nl2br($model->note);
        }
    ],
    
    Login or Signup to reply.
  2. if using on html you can HTML syntax with BR otherwise use /n to make Enter or

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search