hyperlink - jsviews table dynamic column -


Which column I am trying to create columns to enable columns to show, but I Use the link I want to be able to use, but I did it by using it, as I have decided, it does not update using Microsoft Setpropti.

The one that I recently ended was generating a template based on the first column collection, and the table in that table.

So I would like to know what is a way to do this in a template?

  & lt; Table id = "test" & gt; & Lt; Tbody & gt; ; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; Script & gt; Var column = [{field: "id"}, {field: "name"}]; Var data = {rows: [id: 1, name: "a", blah "blay"}, {id: 2, name: "b", blah: "blay"}}}; Var tmpl = "{^ {for rows}} & lt; tr & gt; {^ {for} columns}} & lt; td & gt; {^: # parent.parent.data [field]}} & lt; / Td> {{/ for}} & lt; / tr & gt; {{/ for}} "; $ Templates (TMPL). Link ("#Test Tabs", Data, {Columns: Column}}; Var d = $ View ($ ("# test tbody tr") [0]). Data; $ .hoursevale (d) .setProperty ("name", "c"); & Lt; / Script & gt;  

Here's a way you can use:

  & lt; Table id = "test" & gt; & Lt; Tbody & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; Script type = "text / x-jsrender" id = "tmpl" & gt; {^ {For lines}} & lt; Tr & gt; {^ {Props}} {{if these columns (key)}} & lt; Td> {^ {: Prop}} & lt; / Td> & Lt; Td> & Lt; Input data-link = "support" /> & Lt; / Td> {{/ If}} {{/ props}} & lt; / Tr & gt; {{/ For}} & lt; / Script & gt; & Lt; Script & gt; Var column = ["id", "name"]; Var data = {rows: [id: 1, name: "a", blah "blay"}, {id: 2, name: "b", blah: "blay"}}}; $ .Template ("# TMPL"). Link ("#Test Tabs", Data, {Columns Function (Key) {Return $ .INR (Key, Column)! == -1;}}}; Var d = $ View ($ ("# test tbody tr") [0]). Data; $ .hoursevale (d) .setProperty ("name", "c"); & Lt; / Script & gt;  

With the next update, a new datamap feature will provide an alternative approach. I will probably update this answer, once available.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -