group based on category instead of method name
This commit is contained in:
parent
abe0226a6c
commit
05f0fb7353
|
@ -56,6 +56,7 @@ class CCPMethodList extends HTMLElement{
|
||||||
<ul name="process_list" class="list-group ccp-process-list">
|
<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">
|
<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>
|
<div>
|
||||||
|
<span name="title" class="h5"></span>
|
||||||
<span name="version" class="badge badge-primary"></span>
|
<span name="version" class="badge badge-primary"></span>
|
||||||
<span name="author" class="badge badge-warning"></span>
|
<span name="author" class="badge badge-warning"></span>
|
||||||
<div class="float-right d-flex" style="gap:3px">
|
<div class="float-right d-flex" style="gap:3px">
|
||||||
|
@ -317,6 +318,7 @@ class CCPMethodList extends HTMLElement{
|
||||||
{
|
{
|
||||||
target : "li.ccp-process",
|
target : "li.ccp-process",
|
||||||
"in" : (e,d)=>this.#filtered[d],
|
"in" : (e,d)=>this.#filtered[d],
|
||||||
|
apply : (e,d)=>{ e.alt = e.title = d.title },
|
||||||
on_click : ev=>{
|
on_click : ev=>{
|
||||||
const id = ev.currentTarget.bss_input.data.id
|
const id = ev.currentTarget.bss_input.data.id
|
||||||
if(ev.target.getAttribute("name") === "export_method"){
|
if(ev.target.getAttribute("name") === "export_method"){
|
||||||
|
@ -339,6 +341,10 @@ class CCPMethodList extends HTMLElement{
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
},
|
},
|
||||||
recurse : [
|
recurse : [
|
||||||
|
{
|
||||||
|
target: "span[name=title]",
|
||||||
|
apply : (e,d)=>{ e.textContent = d.title }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
target: "span[name=version]",
|
target: "span[name=version]",
|
||||||
apply : (e,d)=>{ e.textContent = d.version }
|
apply : (e,d)=>{ e.textContent = d.version }
|
||||||
|
|
Loading…
Reference in New Issue