I would like the tooltip to work even when the button is disabled. My use case is to tell the user why a button is disabled like: "You cannot delete this Client as there are orders associated with them."
I would use it like so:
{{(lbClients.selectedItem.project_count > 0 ||
lbClients.selectedItem.contact_count > 0) ?
"There are Contacts or Projects associated with this Client, therefore it cannot be deleted" :
'Delete Client'}}
While you are are at it, make this change for all components (I only tested Select and it does the same thing.)
@PaulvG a quick update about actions in Switch buttons: the correct way to target an action's disabled state by index is using disabledByIndex[i]. So for example:
{{ self.disabledByIndex[1] ? 'this is disabled' : 'this is not disabled'}}