isNavigable

Updated:

Checks Tecton or platform level features to see if they can be navigated to.

Description

The isNavigable capability allows modules to safely check if another Tecton or platform-level feature is configured to be navigated to via something like navigateTo. Within a module, this is determined by whether or not the navigable key is set to true or false in the feature's configuration. If the moduleName argument is not provided, the capability will find the module that has the primary key set to true and return the result of that module's navigable key.

Signature

tecton.sources.isNavigable(featureName: string, moduleName?: string): Promise<boolean>;

Usage

Check if a feature is able to be navigated directly to.

const canNavigate = await tecton.sources.isNavigable('MyFeature', 'Main');
if (canNavigate) {
    showFeatureLink();
}

Parameters

featureName
moduleName

Platform Support

UUX

Changelog

The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.

Show changelog (0)