Toggling the Rail in the Foundation Site - akumina/AkuminaTraining GitHub Wiki
Applies to
Digital Workplace Foundation Site 4.0.0.0 and later
Overview
The Akumina Rail is a featured shipped with the Digital Workplace Foundation Site OOB branding. The Rail is used to display features that we want available to a user on a site wide basis. However, business requirements may call for the Rail to be toggled or hidden from specific users. This can be done via jquery.
Toggle the Rail
The following lines of jquery can be called from an event handler or a function subscribing to an event using the Akumina Eventing Framework to toggle the rail.
$(".ak-user-nav").toggleClass("ak-active");
$(".ak-page-container").toggleClass("ak-nav-active");
$(".ak-user-nav-trigger").toggleClass("ak-nav-active");
Hide the Rail
Alternatively, we can completely hide the rail via the following lines of jquery.
$(".ak-user-nav").removeClass("ak-active");
$(".ak-page-container").removeClass("ak-nav-active");
$(".ak-user-nav-trigger").removeClass("ak-nav-active");