group based on category instead of method name

This commit is contained in:
dcore94 2023-04-06 18:07:42 +02:00
parent abe0226a6c
commit 05f0fb7353
1 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class CCPMethodList extends HTMLElement{
<ul name="process_list" class="list-group ccp-process-list">
<li class="d-flex list-group-item list-group-item-secondary ccp-process p-2 my-1" style="flex-direction: column; gap:5px" draggable="true">
<div>
<span name="title" class="h5"></span>
<span name="version" class="badge badge-primary"></span>
<span name="author" class="badge badge-warning"></span>
<div class="float-right d-flex" style="gap:3px">
@ -317,6 +318,7 @@ class CCPMethodList extends HTMLElement{
{
target : "li.ccp-process",
"in" : (e,d)=>this.#filtered[d],
apply : (e,d)=>{ e.alt = e.title = d.title },
on_click : ev=>{
const id = ev.currentTarget.bss_input.data.id
if(ev.target.getAttribute("name") === "export_method"){
@ -339,6 +341,10 @@ class CCPMethodList extends HTMLElement{
ev.preventDefault()
},
recurse : [
{
target: "span[name=title]",
apply : (e,d)=>{ e.textContent = d.title }
},
{
target: "span[name=version]",
apply : (e,d)=>{ e.textContent = d.version }