1 min read By Calcumate

Filtering To Available Units

Filtering To Available Units

Calcumate allows you to filter out specific units so that they do not appear in the results. This can be useful for managing inventory and ensuring only available units are displayed to users.

Instructions

Disabling Units

To disable specific units, use the following JavaScript code:

window.dispatchEvent(new CustomEvent("calcumateLoad", {
    detail: [<Units ID>, <Units ID>],
}));

window.dispatchEvent(new CustomEvent(“calcumateLoad”, { detail: [,], }));

  • Replace <Units ID> with the actual IDs of the units you want to disable.
  • You can list multiple unit IDs separated by commas within the square brackets.

Enabling All Units

To enable all units again, pass an empty array in the detail:

window.dispatchEvent(new CustomEvent("calcumateLoad", {
    detail: [],
}));

Listing Available Units

To see a list of all available units, use the following command:

window.listUnits

Listing Disabled Units

To see a list of all currently disabled units, use the following command:

window.disableUnits

Here is an example of how to disable two units with IDs 123 and 456:

window.dispatchEvent(new CustomEvent("calcumateLoad", {
    detail: [123, 456],
}));

To enable all units again:

window.dispatchEvent(new CustomEvent("calcumateLoad", {
    detail: [],
}));
Share:
Back to Blog

More from the blog

View all posts »

Introducing Calcumate3D

Melbourne, Australia – 22 September 2026 – Calcumate today announced the launch of Calcumate3D, the next generation of its world-leading 3D storage size…

New feature: CalcumateGEO

July 14, 2025 – Melbourne, Australia – Calcumate, the world’s leading 3D self-storage size calculator, today announced the launch of CalcumateGEO – the…