You could use: https://marketplace.mendix.com/link/component/56
Or you could do that by creating a new layout or implementing this on an existing layout, add a snippet call to the layout, in that snippet call, create a dataview filled by nanaflow if you want javascript or microflow if you want serverside logic. In that microflow apply your logic. For example: