Skip to main content

ODDynamicStat class

under construction

We are still working the API Reference! This page might be incomplete or doesn't contain all details!

Overview​

This is an Open Ticket dynamic statistic.

A dynamic statistic does not store anything in the database! Instead, it will execute a function to return a custom result. This can be used to show statistics which are not stored in the database.

This is used in Open Ticket for the live ticket status, participants & system status.

View Source

Properties​


inherited id class ➜ api.ODId​

The id of this data.

View Source


inherited priority number ➜ number​

The priority of this statistic.

View Source


inherited render type ➜ api.ODStatRenderer​

The render function of this statistic.

View Source


inherited value type ➜ null|api.ODValidStatValue​

The value of this statistic.

View Source


Methods​


constructor() function ➜ api.ODDynamicStat​

(no description)

View Parameters (3)

View Source


inherited protected _change() function ➜ void​

Trigger an onChange() event in the parent ODManager of this class.

View Source


inherited changed() function ➜ void​

(❌ SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.

View Parameters (1)
  • callback: type ➜ null|(() => void) - Parameter Description Lorem Ipsum.

View Source


Defaults​

under construction

We're still working on this part of the documentation!

Examples​

under construction

We're still working on this part of the documentation!