Previous |
Next |
This procedure adds the style tag to load a CSS library. If a library has already been added, it will not be added a second time.
Syntax
APEX_CSS.ADD_FILE ( p_name IN VARCHAR2, p_directory IN VARCHAR2 DEFAULT WWV_FLOW.G_IMAGE_PREFIX||'css/', p_version IN VARCHAR2 DEFAULT C_APEX_VERSION, p_skip_extension IN BOOLEAN DEFAULT FALSE);
Parameters
Table: ADD_FILE Parameters describes the parameters available in the ADD_FILE
procedure.
ADD_FILE Parameters
Parameter | Description |
---|---|
|
Name of the CSS file. |
|
Begin of the URL where the CSS file should be read from. If you use this function for a plug-in you should set this parameter to |
|
Identifier of the version of the CSS file. The version will be added to the CSS filename. In most cases you should set NULL as value. |
|
The function automatically adds ".css" to the CSS filename. If this parameter is set to FALSE this will not be done. |
Example
Adds the CSS file jquery.autocomplete.css
in the directory specified by p_plugin.image_prefix
to the HTML output of the page and makes sure that it will only be included once if apex_css.add_file
is called multiple times with that name.
apex_css.add_file ( p_name => 'jquery.autocomplete', p_dictionary => p_plugin.image_prefix, p_version => null );