v7.3.0
SupportExamplesFree Trial

Wbs

This class holds a WBS (Work Breakdown Structure) value (e.g., '1.2.1'). This class ensures that such values compare correctly, for example, that '1.2' is less than '1.10' (which do not compare that way as simple text). Use the static from() method to create instances and compare() for ordering.

const wbs = Wbs.from('1.2.10');

// Correct numeric ordering (not lexicographic) Wbs.compare('1.2', '1.10'); // -1 (1.2 < 1.10) Wbs.compare('2.1', '1.3'); // 1 (2.1 > 1.3)

See also

  • Model - Model class that can hold WBS field values
No results

Properties

Properties are getters/setters or publicly accessible variables on this class

    Functions

    Functions are methods available for calling on the class

    Source path

    Core/data/Wbs.js

    Contents