Pregunta a l'IA
Hola! Pregunta'm qualsevol cosa
Gremlin macros

Elephant includes a set of dynamic macros, in order to render Gremlin results in a fancy manner.

Gremlin
Macro processor

@{gcchart ( height , name , root ) }
Atributs Descripció Per defecte Opcions
height CSS style height.
name Attribute name.
root

@{gchart ( data , height , order , title , type ) }
Atributs Descripció Per defecte Opcions
data
height CSS style height.
order asc, desc
title
type Only items with type. line, pie

@{gcindicator ( name , root ) }
Atributs Descripció Per defecte Opcions
name Attribute name.
root

@{gckpi ( name , root ) }
Atributs Descripció Per defecte Opcions
name Attribute name.
root

@{gconcept ( class , name , root ) }
Atributs Descripció Per defecte Opcions
class Writes true or false expressions depending on whether class could be instantiated.
name Attribute name.
root

@{gctable ( name , root ) }
Atributs Descripció Per defecte Opcions
name Attribute name.
root

@{gcview ( concept , limit , root ) }
Atributs Descripció Per defecte Opcions
concept
limit
root

@{gindicator ( value ) }
Atributs Descripció Per defecte Opcions
value Value to search for.

@{gkpi ( format , now , period , then ) }
Atributs Descripció Per defecte Opcions
format Format used to show the value. percentage, difference
now
period month, year, lastYear, lastQuarter, lastSemester, semester, lastMonth, quarter
then

@{gtable ( order , rows ) }
Atributs Descripció Per defecte Opcions
order asc, desc
rows

@{gview ( entities , limit , matching , ranking , template , tmpl-root ) }
Atributs Descripció Per defecte Opcions
entities
limit
matching
ranking
template Template used to show the items.
tmpl-root Templates root.

Macro examples

These are ElephantGraph, real-data, dynamic macros examples.

Idea
Comunicació
Cas d'estudi del marc de treball ZK EE per a Zkoss
Crear un cas d'estudi nou, ja n'existeix un de previ fet pels mateixos de Zkoss, del BaaS usant el marc de treball ZK EE.
   
Phase Projects
Resolution 1
Incubator 3
Idea 9
Execution 15

How?

Preventing macros from execute
The following EWiki code adds an empty space after @ and before { to prevent the macro from executing. Remove the spaces if you're planning to use it in your site.
@w{cards(class=three)}
@ {gview(entities="projects-random",ranking="project-alltime",matching="project-relations",tmpl-root="dossier",template="project-cards",limit=3)}
@w{/cards}

@w{grid(class=two column)}

@w{column}
@w{table(class=definition)}
@w{theader(values="Phase|Projects")}
@ {gtable(rows=projects-phase)}
@w{/table}
@w{/column}

@w{column}
@ {gchart(title="Projects phase",type=pie,data=projects-phase,height=300px)} 
@w{/column}

@w{column}
@ {gchart(title="Dossier status",type=pie,data=dossier-status,height=300px)} 
@w{/column}

@w{column}
@ {gchart(title="Issues priority",type=pie,data=issues-status,height=300px)} 
@w{/column}

@w{/grid}