11.2 ADD_3RD_PARTY_LIBRARY_FILE Procedure

This procedure adds the link tag to load a 3rd party css file and also takes into account the specified Content Delivery Network for the application. Supported libraries include: jQuery, jQueryUI, jQueryMobile.

If a library has already been added, it is not added a second time.

Syntax

ADD_3RD_PARTY_LIBRARY_FILE ( 
    p_library     IN    VARCHAR2, 
    p_file_name   IN    VARCHAR2, 
    p_directory   IN    VARCHAR2 DEFAULT NULL, 
    p_version     IN    VARCHAR2 DEFAULT NULL, 
    p_media_query IN    VARCHAR2 DEFAULT NULL );

Parameters

Table 11-2 ADD_3RD_PARTY_LIBRARY_FILE Parameters

Parameters Description

p_library

Use one of the c_library_* constants

p_file_name

Specifies the file name without version, .min and .css

p_directory

Directory where the file p_file_name is located (optional)

p_version

If no value is provided then the same version Application Express ships is used (optional)

p_media_query

Value that is set as media query (optional)

Example

The following example loads the Cascading Style Sheet file of the Accordion component of the jQuery UI.

apex_css.add_3rd_party_library_file (
    p_library   => apex_css.c_library_jquery_ui,
    p_file_name => 'jquery.ui.accordion' )