emerald-web-framework
emerald-web-framework copied to clipboard
[Sling-table] We should allow formatters to be used outside the table.
I'm submitting a:
[ ] bug report [x] feature request [ ] support request
Current behavior:
Some formatters are useful outside the table, we should find a way to export them as one or many components.
Also, this specific formatter in PaymentOperations.js
could be broken in two, one for the field
and the other for the secondaryField
.
{
title: 'Último Status',
type: item => html`
<div>
<span class$="bullet__status bullet__status_${item.settlement_status_id}">${item.status}</span>
<span class="emd-table__content emd-table__content_secondary bullet__status_secondary">${globalFormatters.formatDate(item.reference_date)}</span>
</div>`,
}
Expected behavior:
Sharing formatters between components should be easy.