typescript - add custom button in actions column in ng2-smart-table angular 2 -


in ng2-smart-table angular 2 want add new button in actions column , click on button route page add , edit , delete buttons tried make new button it's not working

settings = {      add: {       addbuttoncontent: '<i  class="ion-ios-plus-outline"></i>',       createbuttoncontent: '<i class="ion-checkmark" ></i>',       cancelbuttoncontent: '<i class="ion-close"></i>',       confirmcreate: true,      },     edit: {       editbuttoncontent: '<i class="ion-edit"></i>',       savebuttoncontent: '<i class="ion-checkmark"></i>',       cancelbuttoncontent: '<i class="ion-close"></i>',           confirmsave: true     },     delete: {       deletebuttoncontent: '<i class="ion-trash-a"></i>',       confirmdelete: true     },  

, how can add button , searched in ng2-smart table documentation , can't find thing related https://akveo.github.io/ng2-smart-table/documentation

try it:

in columns setting, add 1 column "actions":

  actions: //or   {     title:'detail',     type:'html',     valuepreparefunction:(cell,row)=>{       return `<a title="see detail product "href="your api key or something/${row.id}"> <i class="ion-edit"></i></a>`     },     filter:false          },   id: { //this id use in ${row.id}     title: 'id',     type: 'number'   }, 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -