You could add data attributes to your buttons and react accordingly:
<button data-do="showDetailCard">
<button data-do="anotherAction">
// ...
listeners: {
tap: {
element: 'element',
delegate: 'button',
fn: 'doAction'
}
}
// ...
function doAction(event) {
var do = event.target.dataset.do;
if (do === 'showDetailCard') {
// show detail card
} else if (do === 'anotherAction') {
// do another action
}
}