UNPKG

@alihbuzaid/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

17 lines (13 loc) 432 B
import Component from '@glimmer/component'; import { action } from '@ember/object'; export default class TableCellAnchorComponent extends Component { @action onClick() { const { column, row } = this.args; if (typeof column?.action === 'function') { column.action(row); } if (typeof column?.onClick === 'function') { column.onClick(row, ...arguments); } } }