UNPKG

datatables.net-datetime

Version:

DateTime picker for DataTables.net

27 lines (20 loc) 969 B
<?xml version="1.0" encoding="UTF-8" ?> <dt-api library="DateTime"> <name>destroy()</name> <summary>Destroy a DateTime control.</summary> <since>1.0.0</since> <type type="function"> <signature>destroy()</signature> <description>Destroy a DateTime control.</description> <returns type="undefined">No return value</returns> </type> <description> Destroys the given DateTime control, hiding and removing it from the dom and also stripping any event listeners that are in place. This example is a somewhat redundant since it creates the input element only to immediately destroy it. In a real application you would destroy the DateTime instance if you no longer require it and wish to release any memory allocated to it and its event handlers. </description> <example title="Destroy DateTime instance"><![CDATA[ var dt = new DateTime(document.getElementById('example')); // Then sometime later, destroy it... dt.destroy(); ]]></example> </dt-api>