Перейти к основному содержимому

wbs

Description​

Configures the stored WBS codes extension

wbs: WBSConfig

Example​

gantt.config.wbs = {
fields: { code: "wbs_code", locked: "wbs_locked" },
update_policy: "preserve",
generate_on_create: true,
generate_on_parse: false,
mask: null
};
gantt.plugins({ wbs: true });

Details​

Set the configuration before activating the wbs extension. The extension is available in paid editions.

PropertyTypeDefaultEffect
fields{ code: string; locked: string }{ code: "wbs_code", locked: "wbs_locked" }Names the task fields that store the code and lock flag. Use different non-empty names. Names beginning with $ or _ and reserved fields such as id, parent and start_date are invalid.
update_policy"preserve" | "reparent" | "structure""preserve"Controls how structural edits affect stored codes.
generate_on_createbooleanfalseAssigns a code when a task is added without one.
generate_on_parsebooleanfalseFills missing codes after Gantt loads tasks.
maskWBSMask | nullnullDefines the prefix and numbering sequence for each level. The default generates numeric segments separated by periods.

Use gantt.ext.wbs.setMask(mask) to validate and change the mask after activation.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.