adding an admin menu

adding an admin menu

mikoolmikool Posts: 3Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
How would I go about adding an extra column for an admin menu where the user can click a link inside the column to edit, delete, or view the element in the row?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Just like this: http://editor.datatables.net/release/DataTables/extras/Editor/examples/inlineControls.html :-)

    Allan
  • mikoolmikool Posts: 3Questions: 0Answers: 0
    Thanks, was looking in the examples for adding an extra column.
  • mikoolmikool Posts: 3Questions: 0Answers: 0
    edited June 2012
    Actually, I want the edit and delete to have the ID in a url, but I can't seem to get the ID from another datacell in the table. How can I do that?

    EDIT: I figured this out. In the documentation, they get the oObj.aData[0] using an index, but in my case I had to use the key oObj.aData['key'].
This discussion has been closed.