Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Bubble editing next to (this)

$
0
0

Hi
I'm trying to use bubble editor to edit to the right of (this), but I cannot figure out how. My table is fine showing alle the data, that I want it to, but I want to be able to have a comment for each piece of data. So my idea is to have a note column to the right of each column of data, but these columns are invisible. So I need the bubble editor not to edit (this) - the data - but the cell to the right of the data, but the bubble editor should be activated when clicking on the data.

// Activate the bubble editor on click of a table cell
    $('#example').on( 'click', 'tbody td', function (e) {
        editor.bubble(this);
    } );

An example of my columns. budget.u31 is data and visible, budget.n31 is notes and invisible and so on.

{
                label: "Lektioner uge 31",
                name: "budget.u31"
            },  {
                label: "Noter uge 31",
                name: "budget.n31"
            },  {
                label: "Lektioner uge 32",
                name: "budget.u32"
            },  {
                label: "Noter uge 32",
                name: "budget.n32"
            },

Any ideas as to how this is possible?
Best regards
Claus


Viewing all articles
Browse latest Browse all 2364

Trending Articles