setTabRestriction(name, restriction)

Sets a new restriction for the specified tab page, without refreshing it. Next tab page refresh will apply the restriction.

Parameters:

  • name (String): tab name;
  • restriction (object): Ab.view.Restriction object; restriction for specified tab page;