[Koha-bugs] [Bug 33066] We need a KohaTable Vue component

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 24 17:19:23 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33066

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 147352
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=147352&action=edit
Bug 33066: Introduce a KohaTable Vue component

The way we deal with DataTables in Vue component is not nice, especially when
we
need to add buttons/link in the cell and interact with the rest of the Vue app
from
there.

When I started to work on Vue last year there was no good solution from
DataTables,
now there is a Vue component. It is not perfect, you still cannot add Vue
component
in the DT component, but it brings something to follow. Agustin implemented
something
on theke/import_source_vue, but he went too far, and it will need to rewrite
the
whole ERM module. Additionally he didn't provide a solution that has the same
features
as what we have now.

The goal of this patch is to not duplicate the code in datatables.js, we
don't want to maintain two version of this code (one is enough already!)
We split the huge function in datatables.js in small ones to make them
reusable from the Vue component.

This is quite ugly, and it needs to lot more addition, but it's a first
start!

Help, ideas, and feedback welcome (and needed!)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list