Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
custom:javascript:lib:ddlightbarmenu.js [2024/02/11 14:37] – Add() now has an additional parameter: isUTF8 (for the item text) nightfox | custom:javascript:lib:ddlightbarmenu.js [2024/02/12 18:42] (current) – [Replacing the NumItems() and GetItem() functions] Mention textIsUTF8 nightfox | ||
---|---|---|---|
Line 227: | Line 227: | ||
// object). | // object). | ||
// | // | ||
- | | ||
// You might also opt to give this item specific colors for normal and highlighted | // You might also opt to give this item specific colors for normal and highlighted | ||
// if you want to make this item appear different for whatever reason. | // if you want to make this item appear different for whatever reason. | ||
// | // | ||
// | // | ||
+ | | ||
+ | // If you know the text is in UTF-8 format, you must specify so as follows: | ||
+ | menuItemObj.textIsUTF8 = true; | ||
+ | | ||
return menuItemObj; | return menuItemObj; | ||
}; | }; |