数据表更改行以过滤数据

时间:2018-07-25 17:33:47

标签: javascript jquery datatables

我想更改表上的行,这会触发事件以过滤表。现在引起的问题是,当您想从选择输入中选择一个选项时,您不能真正做到这一点,因为触发了过滤器事件并且选择输入再次关闭。.

那么,是否有可能将选择输入放在标题的第二行中,或者将事件更改为触发订单事件的第二行?

在这里您可以找到我的代码: https://jsbin.com/duneticofu/1/edit?html,css,js,output

我已经尝试将选择输入设置为第二行,但是这引起了其他问题。如果将选择输入设置为第二个标题行,则选项值是错误的。

到目前为止,这是我尝试过的方法:

['802-3-ethernet',
    [
      ['auto-negotiate', ['b', 1]],
    ]
  ],
  ['connection',
    [
      ['id', ['s', 'some name']],
      ['type', ['s','802-3-ethernet']],
      ['uuid', ['s', uuidv4()]],
      ['interface-name', ['s', 'name of interface (eth0, wlan0)']],
      ['autoconnect', ['b', 1]]
    ]
  ],
  ['ipv4',
    [
      ['method', ['s','auto']]
    ]
  ],
  ['ipv6',
    [
      ['method', ['s','manual']],
      ['ip6-privacy', ['i', -1]]
      ['dns',
        ['aay',
          [
            [
              '2001:4860:4860::8888',  //needs to be array or buffer of uint8
              '2001:4860:4860::8844'  //needs to be array or buffer of uint8
            ]
          ]
        ]
      ],
      ['addresses',
        ['a(ayuay)',
          [
            [
              [
                'static ipv6 ip',  //needs to be array or buffer of uint8
                parseInt(CIDR, example: 64),
                'ipv6 gateway ip'  //needs to be array or buffer of uint8
              ]
            ]
          ]
        ]
      ]
    ]
  ]

代替(documentation):

.appendTo( $('#contact_overview_table thead tr:eq(1) th').empty() )

我将提供任何帮助! 谢谢!

0 个答案:

没有答案
相关问题