Previous |
Next |
This function returns a link to the current page to turn on or off, toggle, the mode. For example, if you are in standard mode, this function displays a link that when clicked switches screen reader mode on.
Syntax
APEX_UTIL.GET_SCREEN_READER_MODE_TOGGLE ( p_on_message IN VARCHAR2 DEFAULT NULL, p_off_message IN VARCHAR2 DEFAULT NULL) RETURN VARCHAR2;
Parameters
Table: GET_SCREEN_READER_MODE_TOGGLE Parameters describes the parameters available in GET_SCREEN_READER_MODE_TOGGLE
function.
GET_SCREEN_READER_MODE_TOGGLE Parameters
Parameter | Description |
---|---|
|
Optional text used for the link to switch to screen reader mode, when you are in standard mode. If this parameter is not passed, the default 'Set Screen Reader Mode On' text will be returned in the link. |
|
Optional text used for the link to switch to standard mode, when you are in screen reader mode. If this parameter is not passed, the default 'Set Screen Reader Mode Off' text will be returned in the link. |
Example
When running in standard mode, this function will return a link with the text 'Set Screen Reader Mode On'. When the link is clicked the current page is refreshed and screen reader mode is switched on. When running in screen reader mode, a link 'Set Screen Reader Mode Off' is returned. When the link is clicked the current page is refreshed and switched back to standard mode.
BEGIN htp.p(apex_util.get_screen_reader_mode_toggle); END;