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!

Sidebar Menu Tooltips -Uncaught TypeError

Tony FatourosJul 19 2017 — edited Jul 19 2017

Hi,

Using APEX v5.1.2 with UT and reading through the forum, i.e.: How to implement tooltips on Side Navigation Menu List icons

I'm using the following code within my Global page as a DA - Page load:

if (!$("div.t-Header-controls :button").hasClass("is-active")){

  $("#t_TreeNav").treeView("option", "tooltip", {

    content: function(cb, node) {

      return node.label;

    }

  });

  $("#t_TreeNav").tooltip("option", "items", ".a-TreeView-content");

} else {

   $("#t_TreeNav").treeView("option", "tooltip", {

      content: function(cb, node) {

        return null;

      }

    });

    $("#t_TreeNav").tooltip("option", "items", ".a-TreeView-content");

}

but unfortunately am receiving the following JS error:

Uncaught TypeError: $(...).treeView is not a function

    at Object.javascriptFunction (f:248)

    at Object.da.doAction (desktop.min.js:18)

    at Object.da.doActions (desktop.min.js:18)

    at HTMLDivElement.<anonymous> (desktop.min.js:18)

    at Function.each (jquery-2.2.3.min.js:2)

    at a.fn.init.each (jquery-2.2.3.min.js:2)

    at Object.da.actions (desktop.min.js:18)

    at Object.<anonymous> (desktop.min.js:18)

    at Function.each (jquery-2.2.3.min.js:2)

    at a.fn.init.each (jquery-2.2.3.min.js:2)

Can anyone pls assist?

Thanks.

Tony.

This post has been answered by ApExEngma on Jul 19 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2017
Added on Jul 19 2017
2 comments
447 views