Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reference native components JS & CSS files in a plug-in

ostrowskibartoszJun 2 2020 — edited Jun 2 2020

Hi,

I'm working on a plug-in that needs to allow end-user to pick a color from colorpicker. Instead of attaching external libraries I would like to use color picker that is used for native APEX Color picker Item.

These files are:

I can generate URLs to CDN files but I would rather have behaviour similar to described in Application User Interface Details like on screen below:

pastedImage_2.png

Is there is a way I can achieve similar effect in the plug-in definition URL files to load or in the plug-in PL/SQL? I know there are APIs like apex_javascript.add_3rd_party_library_file and apex_css.add_3rd_party_library_file but these are described with comments:

--==============================================================================

-- Adds the script tag to load a 3rd party javascript library file (supported

-- libraries: jQuery, jQueryUI) and will also take into account the specified

-- Content Delivery Network for the application.

and the color picker is based on http://www.eyecon.ro/colorpicker/

/*!

Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.

*/

/*

* The {@link apex.widget}.colorpicker allows to use a color picker dialog to pick a color.

* Internally uses the jQuery colorpicker plug-in http://www.eyecon.ro/colorpicker/

**/

Is there any way I can tell apex to load these files when the plug-in is used or should I extract files and attach them myself for the plug-in?

Regards

Bartosz

This post has been answered by Pierre Yotti on Jun 2 2020
Jump to Answer
Comments
Post Details
Added on Jun 2 2020
4 comments
511 views