RulesetManager Interface

Presentation ruleset registry.

Methods

Name Description
add(ruleset: Ruleset): Promise<RegisteredRuleset> Register the supplied ruleset  
clear(): Promise<void> Remove all rulesets registered in this session.  
get(id: string): Promise<undefined | RegisteredRuleset> Get a ruleset with the specified id.  
modify(ruleset: RegisteredRuleset, newRules: Omit<Ruleset, "id">): Promise<RegisteredRuleset> Modify the given pre-registered ruleset  
remove(ruleset: RegisteredRuleset | [string, string]): Promise<boolean> Unregister the supplied ruleset  

Properties

Name Type Description
onRulesetModified BeEvent<(curr: RegisteredRuleset, prev: Ruleset) => void> An event invoked one a ruleset is modified using modify function.  

Defined in

Last Updated: 21 November, 2024