praella-agency / polaris-vue

Polaris Vue by HulkApps is a component library for Vue.js based on Shopify Polaris style guide.
https://polaris-vue.hulkapps.com
MIT License
37 stars 10 forks source link

[Suggestion] PDataTable components: Hope to provide event trigger #61

Closed PrintNow closed 3 years ago

PrintNow commented 3 years ago

For example, I want to click on these item to execute my custom method in "Vue.js"

image

Current provide configure:

{
  "content": "2021073012345",
  "url": "javascript:void(0);"
},

For example, add an "Action" configuration item here to trigger a custom Vue method

{
  "content": "2021073012345",
  //For example, add an "Action" configuration item here to trigger a custom Vue method
  "onAction": this.someHandle
}

Maybe what I said is not very clear, this is the result I probably want

image

saurabh-sali-hulkapps commented 3 years ago

@uttam-hulkapps Do we need to add this feature?

uttam-praella commented 3 years ago

@saurabh-sali-hulkapps Sure we can think on it. @PrintNow Sure we will consider this suggestion on our new releases.