Skip to main content

isModeAllowed method

ON THIS PAGE

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

Version history
Version state Details
Introduced 2.1

Parameters

mode

Type: 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
  };