Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get an Id on <tr> #38

Open
marckneo opened this issue Oct 19, 2022 · 1 comment
Open

how to get an Id on <tr> #38

marckneo opened this issue Oct 19, 2022 · 1 comment

Comments

@marckneo
Copy link

Dear All I need to get the line data to open a form with a click on a line.
Please help

@marckneo
Copy link
Author

I fix it:

{
                key: "_renderBody",
                value: function(t) {
                    t || (t = u()('<tbody class="gs-table-body"></tbody>'));
                    var e = this.engine,
                        n = this.options,
                        a = n.columns,
                        i = n.formatCell,
                        r = this.getCurrentPageIndex(),
                        o = r.from,
                        s = r.to,
                        l = [];
                    l = void 0 === s ? this._dataset.top() : this._dataset.get(o, s);
                    var c = [],
                        h = m(a);
                    return b(l, (function(t, n) {
                        var a = [];
                        b(h, (function(n) {
                            var r;
                            void 0 !== t[n] && (r = f(i) ? e.createElement("td", {
                                html: i(t, n)
                            }) : e.createElement("td", {
                                html: t[n]
                            }), a.push(r))
                        })), c.push(e.createElement("tr", {onClick: function() {getlinecliked(t)}}, a))
                    })), e.render(c, t)
                }
            },``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant