Javascript API

Knowledgebase Docs » ShiftNav
USEFUL? 12

ShiftNav provides a simple javascript API for opening and closing the menu.

Pass the ID of the ShiftNav panel to control it.

Open the ShiftNav Panel

jQuery( '#shiftnav-main' ).shiftnav( 'openShiftNav' );

Close the ShiftNav Panel

jQuery( '#shiftnav-main' ).shiftnav( 'closeShiftNav' );