Custom dimensions with events

Is there a way to send custom dimensions with events? And then be able to filter for that event using the custom dimension?

I’m guessing it’s something similar to:
window.paq.push(["trackEvent", category, action, name, value, something here?])

I have discovered how to do this now.
onclick="_paq.push(['trackEvent', 'Asset/Resource Store Navigation', 'Dashboard Click', 'Assets', 0, {dimension1: 'DimensionValue'}]);"