Like DataTables Home Page

Like DataTables Home Page

boirodboirod Posts: 2Questions: 1Answers: 0

Hi everyone, I'm having to do a table like this home page table (there is one table that have a plus button to show salary) but i have to show a link to edit the row. Anyone can help me with this? Thanks in advance for your help... :) And sorry my poor english

Answers

  • walt888walt888 Posts: 1Questions: 0Answers: 0
    edited March 21

    You can use columns.render to accomplish this.
    e.g.

    columns: [
            { data: 'id' },
            { data: 'name' },
            {
                    data: 'id', render: function (data, type, row, meta) {
                            return '<a href="Edit/' + data + '">Edit</a>';
                    }
            }
     ]
    
    
  • colincolin Posts: 5,407Questions: 0Answers: 940

    Hi @boirod ,

    The home page table is using the Responsive extension - there's a few examples there on how to create your own.

    Cheers,

    Colin

  • boirodboirod Posts: 2Questions: 1Answers: 0

    Thank you guys, i will see this now.

Sign In or Register to comment.