njleonzhang / vue-data-tables

A simple, customizable and pageable table with SSR support, based on vue2 and element-ui

Home Page:https://njleonzhang.github.io/vue-data-tables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to open actionCol in new tab

robertnicjoo opened this issue · comments

Please follow the issue template, or your issue may be closed automatically.

For bug report, provide the following section

Online reproduce

It is important to provide an online sample to reproduce the issue.

Expected Behavior

Open visit link in new tab

Current Behavior

Visit link opens in same tab

Steps to Reproduce

actionCol: {
  label: 'Actions',
    props: {
      align: 'center',
      width:"230"
    },
    buttons: [{
    {
      props: {
        type: 'secondary',
        size: 'mini',
        icon: 'el-icon-thumb'
      },
      handler: row => {
        this.$router.push({ name: 'SingleProduct', params: { slug: row.slug } })
      },
      label: ''
   }
  }]
},

Screenshot (35)

Detailed Description

I just need to open my visit link in new tab same as target="_blank" if it was a tag.

For feature request, provide the following section

Motivation / Use Case

Expected Behavior

Other Information

no one has idea?

it seems not a an question about this project.
follow stackoverflow to solve your problem: https://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-and-not-a-new-window