<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: Datatables: Comments</title>
    <link>https://moodle.org</link>
    <description>Provides API to add DataTables features to Moodle HTML tables.</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1777401252/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Monday, 6 July 2020, 6:24 PM - Bernard Widjanarko</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-64715</link>
      <pubDate>Mon, 06 Jul 2020 10:24:30 GMT</pubDate>
      <description>by Bernard Widjanarko. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello Sir .. I have two separate datatables in one moodle page .. following the samples provided :&lt;br&gt;
&lt;br&gt;
$params = array(&quot;select&quot; =&amp;gt; true, &quot;paginate&quot; =&amp;gt; false);&lt;br&gt;
$params['buttons'] = array(&quot;selectAll&quot;, &quot;selectNone&quot;);&lt;br&gt;
$params['dom'] = 'lfiprt';&lt;br&gt;
$params['debug'] = true;&lt;br&gt;
$selector = '.datatable';&lt;br&gt;
$PAGE-&amp;gt;requires-&amp;gt;js_call_amd('tool_datatables/init', 'init', array($selector, $params));&lt;br&gt;
$PAGE-&amp;gt;requires-&amp;gt;css('/admin/tool/datatables/style/dataTables.bootstrap.css');&lt;br&gt;
$PAGE-&amp;gt;requires-&amp;gt;css('/admin/tool/datatables/style/select.bootstrap.css');&lt;br&gt;
...&lt;br&gt;
$PAGE-&amp;gt;requires-&amp;gt;js_call_amd('tool_datatables/init', 'init', array($selector, $params));&lt;br&gt;
echo $renderer-&amp;gt;display_results(array('results' =&amp;gt; $usersa));  // display first datatables&lt;br&gt;
echo $renderer-&amp;gt;display_summaries(array('summaries' =&amp;gt; $usersb)); // display second datatables&lt;br&gt;
.. etc ..&lt;br&gt;
It is working fine, the issue is both datatables are controlled by the init.js which is called in $PAGE-&amp;gt;requires-&amp;gt;js_call_amd ..&lt;br&gt;
&lt;br&gt;
How can i create 2 datatables which i can control separately ?&lt;br&gt;
&lt;br&gt;
Any valuable input will be appreciated ..&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Bernard&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-64715</guid>
    </item>
    <item>
      <title>Wednesday, 28 November 2018, 9:25 PM - Devon R</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-54399</link>
      <pubDate>Wed, 28 Nov 2018 13:25:41 GMT</pubDate>
      <description>by Devon R. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Any plans for 3.5+? The basic tables desperately need a rework&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-54399</guid>
    </item>
    <item>
      <title>Monday, 26 November 2018, 6:17 PM - Olli Savolainen</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-54356</link>
      <pubDate>Mon, 26 Nov 2018 10:17:37 GMT</pubDate>
      <description>by Olli Savolainen. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Oh, admin/tool apparently. So many plugin types... &lt;a href=&quot;https://docs.moodle.org/dev/Plugin_types&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://docs.moodle.org/dev/Plugin_types&lt;/a&gt; :D&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-54356</guid>
    </item>
    <item>
      <title>Monday, 26 November 2018, 6:14 PM - Olli Savolainen</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-54355</link>
      <pubDate>Mon, 26 Nov 2018 10:14:03 GMT</pubDate>
      <description>by Olli Savolainen. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi. Where in the moodle directory should this be placed? Thanks.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-54355</guid>
    </item>
    <item>
      <title>Friday, 20 July 2018, 6:32 PM - Juraj Obonya</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-51848</link>
      <pubDate>Fri, 20 Jul 2018 10:32:34 GMT</pubDate>
      <description>by Juraj Obonya. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Fred: Thank you for the answer. It works as you said. &lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-51848</guid>
    </item>
    <item>
      <title>Thursday, 19 July 2018, 10:49 PM - Fred Yankowski</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-51823</link>
      <pubDate>Thu, 19 Jul 2018 14:49:02 GMT</pubDate>
      <description>by Fred Yankowski. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Juraj: Yes, that should be possible. I haven't looked at this in quite a while, but I believe that if you modify the `selector` value in my initial example code above so that it matches the HTML table(s) of interest, datatables functionality will then be linked to those tables.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-51823</guid>
    </item>
    <item>
      <title>Thursday, 19 July 2018, 7:15 PM - Juraj Obonya</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-51806</link>
      <pubDate>Thu, 19 Jul 2018 11:15:30 GMT</pubDate>
      <description>by Juraj Obonya. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hello. Fred. Is it possible to add the DataTables support for any other html_table in moodle ?? I mean no just on the datatable created by Ad-hoc database queries . &lt;br&gt;
Thanks in advance. &lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-51806</guid>
    </item>
    <item>
      <title>Thursday, 26 November 2015, 8:43 PM - David Mudrák</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-32445</link>
      <pubDate>Thu, 26 Nov 2015 12:43:19 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Thanks Fred for sharing this plugin with the community. Please find some suggestions left in your issues tracker. You are cleared to land now, welcome to the &lt;a title=&quot;Auto-link&quot; href=&quot;https://moodle.org/plugins&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;Plugins directory&lt;/a&gt;!&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-32445</guid>
    </item>
    <item>
      <title>Tuesday, 10 November 2015, 11:45 PM - Fred Yankowski</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-32069</link>
      <pubDate>Tue, 10 Nov 2015 15:45:49 GMT</pubDate>
      <description>by Fred Yankowski. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;I have addressed all the issues reported by the prechecker in version 0.1, except for javascript and CSS warnings concerning the original third-party DataTables code, in version 0.2 just uploaded.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-32069</guid>
    </item>
    <item>
      <title>Tuesday, 10 November 2015, 10:11 PM - Plugins bot</title>
      <link>https://moodle.org/plugins/tool_datatables#comment-32056</link>
      <pubDate>Tue, 10 Nov 2015 14:11:25 GMT</pubDate>
      <description>by Plugins bot. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Prechecker results: 56 errors/209 warnings&lt;br&gt;
&lt;a href=&quot;http://integration.moodle.org/job/Precheck%20remote%20branch/18268/artifact/work/smurf.html&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;http://integration.moodle.org/job/Precheck%20remote%20branch/18268/artifact/work/smurf.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/tool_datatables#comment-32056</guid>
    </item>
  </channel>
</rss>