One way to provide Entitlements in Adaptable Options is through a 'hard-coded' list via the moduleEntitlements property.
This allows you to provide a list of Entitlements - essentially a Module Name and an AccessLevel (either Full, ReadOnly or Hidden).
Any Module not given an Entitlement automatically takes the Access Level of 'Full'; this can be changed via the defaultAccessLevel property (see Default Demo).
In this example we have created 3 Module Entitlements (one for each AccessLevel):
- Cell Summary - set to Hidden with the result that the Cell Summary Toolbar, ToolPanel and Menu Option are not available anywhere in AdapTable and cannot be accessed by users.
- Layout - set to ReadOnly with the result that the Layout Toolbar (and menu option) is visible and Layouts can be selected, but they cannot be created, edited or deleted.
- Export - set to Full (not strictly required as its the DefaultAccessLevel but here for display purposes) which means it can be used without restriction.