According to the documentation for WL.TabBar.addItem regarding the title
parameter:
WL.TabBar.addItem(id, callback, title, options);
title Mandatory string. The title of the tab. If null is passed, no title is displayed.
However, if I pass the value null
like this:
WL.TabBar.addItem("myId", function(){ ... }, null, { ... });
I get this error:
Invalid invocation of method WL.TabBar.addItem; Invalid value 'null' (object), expected type 'string'.
And if I pass an empty string " "
, I don't see the title but there's empty spacing at the bottom, below the icon.