Badges on TABS
Jacques TUR and others.
Using Ninext is it possible to add a badge to a TAB? In the screenshot below you can see I have a TAB to view the notes related to a particular Location. It would be handy if a badge on the TAB could show either the number of notes (count of the records in the view) or simply a badge to indicate that there are records.
10 replies
-
I Allan, I am surprised by your question. You will find the answer in your previous message
https://forum.ninox.com/t/q6h0pvd?r=83h0rkv
Does this help you?
-
In the "Display only If" trigger Ninox expects a true or false value to display or not display the tab.
Your function returns true only if count(NOTES) > 0. In all other cases, the tab will not be displayed.
For this to work, you need to put the "if" condition inside the onUpdate function :function onUpdate(event : any) do if count(NOTES) > 0 then { caption: "LOCATION NOTES", color: "#7e7e7e", backgroundColor: "#00000", tooltip: "Here you can see all notes related for this location only. ", badge: { caption: text(count(NOTES)), color: "#00000", backgroundColor: "#ffffff" } } else {} end; end; true;
Content aside
- 1 yr agoLast active
- 10Replies
- 165Views
-
2
Following