VariantsAPI# webVis API Reference VariantsAPI Interface VariantsAPI Hierarchy VariantsAPI ContextAPI Index Methods isNodePartOfEnabledVariant requestVariants setVariantEnabled Methods isNodePartOfEnabledVariant isNodePartOfEnabledVariant(nodeId): Promise<boolean> Parameters nodeId: number The ID of the Node. Returns Promise<boolean>True, if the Node is Part of an enabled Variant. False otherwise. requestVariants requestVariants(nodeId): Promise<VariantProperties[]> Parameters nodeId: number The ID of the Node. Returns Promise<VariantProperties[]>The Variant(s) for a given nodeID. setVariantEnabled setVariantEnabled(variant, enabled): Promise<void> Enables or disables a given Variant. Parameters variant: number The ID of the Variant. enabled: boolean The enabled state. Returns Promise<void> Did you find this page useful? Please give it a rating: ★ ★ ★ ★ ★ Thank you for rating this page! Any issues or feedback? What kind of problem would you like to report? This page needs code samples Code samples do not work Information is missing Please tell us more about what's wrong: Information is incorrect Please tell us more about what's wrong: Information is unclear or confusing Please tell us more about what's wrong: The page is rendered incorrectly (styling/CSS) Give Feedback Please tell us more about what's wrong: Name E-Mail Problem (required)
The ID of the Node.