isModeAllowed method

Note: STABLE.
This API is reliable and breaking changes are unlikely.

qlik.navigation.isModeAllowed(mode)

Checks if a given mode is allowed.

Version history

Introduced 2.1

Parameters

Name Type Description
mode String or constant

Can be one of the strings:

  • edit
  • analysis

or one of the constants:

  • qlik.navigation.EDIT
  • qlik.navigation.ANALYSIS

Returns

A Boolean value (true or false).

Example

if(qlik.navigation.isModeAllowed(qlik.navigation.EDIT)){
     //enable edit button
  };

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?