datatables

Render currency and symbol and combine with data from a different cell

倖福魔咒の 提交于 2020-05-27 06:07:21
问题 I am working with latest jQuery DataTables v1.10.7 and I am trying to parse a number into the following format: $239.90 USD I am being able make the currency working with this command: columns: [ { data: "Price", render: $.fn.dataTable.render.number(',', '.', 2, '$') }, however the output of this is $239.90 without the USD the USD should be coming from other data that I have in a different row named Currency : row['Currency'] What I'm trying to do is something like this: columns: [ { data:

Render currency and symbol and combine with data from a different cell

与世无争的帅哥 提交于 2020-05-27 06:06:14
问题 I am working with latest jQuery DataTables v1.10.7 and I am trying to parse a number into the following format: $239.90 USD I am being able make the currency working with this command: columns: [ { data: "Price", render: $.fn.dataTable.render.number(',', '.', 2, '$') }, however the output of this is $239.90 without the USD the USD should be coming from other data that I have in a different row named Currency : row['Currency'] What I'm trying to do is something like this: columns: [ { data:

Render currency and symbol and combine with data from a different cell

a 夏天 提交于 2020-05-27 06:05:54
问题 I am working with latest jQuery DataTables v1.10.7 and I am trying to parse a number into the following format: $239.90 USD I am being able make the currency working with this command: columns: [ { data: "Price", render: $.fn.dataTable.render.number(',', '.', 2, '$') }, however the output of this is $239.90 without the USD the USD should be coming from other data that I have in a different row named Currency : row['Currency'] What I'm trying to do is something like this: columns: [ { data:

Header columns misaligned with DataTable when scrollX is enabled

点点圈 提交于 2020-05-26 06:45:40
问题 I have a problem that is recurrent with this plugin. When scrollX option is enabled, the header columns are misaligned. I tried many solutions read on stack overflow , but I don't have success. Maybe, is a problem of version? Howevere, this is my dataTable settings: var oTable = $('#table').dataTable({ "bJQueryUI": true, "aaData": jsonList, "bPaginate": true, "scrollX": true, "scrollCollapse" : true, "bLengthChange" : true, "bAutoWidth" : true, "oLanguage" : IT, "aoColumns": [ { "mDataProp":

Header columns misaligned with DataTable when scrollX is enabled

强颜欢笑 提交于 2020-05-26 06:44:18
问题 I have a problem that is recurrent with this plugin. When scrollX option is enabled, the header columns are misaligned. I tried many solutions read on stack overflow , but I don't have success. Maybe, is a problem of version? Howevere, this is my dataTable settings: var oTable = $('#table').dataTable({ "bJQueryUI": true, "aaData": jsonList, "bPaginate": true, "scrollX": true, "scrollCollapse" : true, "bLengthChange" : true, "bAutoWidth" : true, "oLanguage" : IT, "aoColumns": [ { "mDataProp":

Header columns misaligned with DataTable when scrollX is enabled

↘锁芯ラ 提交于 2020-05-26 06:43:11
问题 I have a problem that is recurrent with this plugin. When scrollX option is enabled, the header columns are misaligned. I tried many solutions read on stack overflow , but I don't have success. Maybe, is a problem of version? Howevere, this is my dataTable settings: var oTable = $('#table').dataTable({ "bJQueryUI": true, "aaData": jsonList, "bPaginate": true, "scrollX": true, "scrollCollapse" : true, "bLengthChange" : true, "bAutoWidth" : true, "oLanguage" : IT, "aoColumns": [ { "mDataProp":

How to sort datatables with date in descending order

做~自己de王妃 提交于 2020-05-24 20:55:30
问题 I wish to show the records using datatables with default ordering based on one of my rows with date & time in descending order. Please help me in editing the jquery structure for that 回答1: The simpliest way is to add a hidden timestamp before the date in every TD tag of the column, for example: <td class="sorting_1"> <span style="display:none;">1547022615</span>09/01/2019 09:30 </td> With the default string ordering, a timestamp would order the column the way you want and it will not be shown

Convert a column of text URLs into active hyperlinks in Shiny

旧城冷巷雨未停 提交于 2020-05-24 08:48:09
问题 I am creating a user interface for a pathway enrichment program. The results are shown in a table as shown below. Below is a snippet showing that I am using DT::renderDataTable and DT::datatable to output the table in a tab. spia_out() is just a reactive function that runs the pathway enrichment and produces a dataframe. spia_out <- reactive({ ...get results in a dataframe... }) output$spiaout <- DT::renderDataTable({ DT::datatable(spia_out(), extensions = ..., options = ...) }) Everything

Convert a column of text URLs into active hyperlinks in Shiny

半世苍凉 提交于 2020-05-24 08:48:04
问题 I am creating a user interface for a pathway enrichment program. The results are shown in a table as shown below. Below is a snippet showing that I am using DT::renderDataTable and DT::datatable to output the table in a tab. spia_out() is just a reactive function that runs the pathway enrichment and produces a dataframe. spia_out <- reactive({ ...get results in a dataframe... }) output$spiaout <- DT::renderDataTable({ DT::datatable(spia_out(), extensions = ..., options = ...) }) Everything

Datatables not working correctly with Bootstrap 4 table-responsive and fixed headers

家住魔仙堡 提交于 2020-05-17 07:46:27
问题 EDIT: JSFiddle: https://jsfiddle.net/9evb8owd/ If you make the example narrow, and then scroll to the left or right, the fixed header does not follow the table. How do I fix this? I'm using Bootstrap 4 and table-responsive to show the table nicely on mobile.I'm also using Datatables for the filtering, and also fixed headers so the user can see the column names when the scroll. However, the fixed headers is not working correctly with the table-responsive. When I scroll left or right on the