OpenDialogCommand how to include Buttons in dialog_options How can I inlcude buttons in OpenDialogCommand?

$options = [
        'dialogClass' =&gt; 'my-dialog-class',
        'width' =&gt; '700px',         
        'buttons' =&gt; [
          'text' =&gt; 'Continue',
          'class' =&gt; 'btn-primary ok-button',
          'click'=&gt; "function() { $(this).dialog('close'); }",
  ],
      ];

      $response-&gt;addCommand(new OpenModalDialogCommand($title, $content, $options));


This seems not to work. The class is set, but no buttons are shown.
In the $options array the element "buttons" must be a "multiple" array.
For example:

$options = [
  'dialogClass' =&gt; 'my-dialog-class',
  'width' =&gt; '700px',
  'buttons' =&gt; [
    [
      'text' =&gt; 'Continue #1',
      'class' =&gt; 'btn-primary ok-button',
      'click' =&gt; "function() { $(this).dialog('close'); }",
    ],
    [
      'text' =&gt; 'Continue #2',
      'class' =&gt; 'btn-primary ok-button',
      'click' =&gt; "function() { $(this).dialog('close'); }",
    ],
  ],