Ask AI
Hi! Ask me anything

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 , roots ) }
Attributes Description Default Options
height CSS style height.
name Attribute name.
root
roots

@{gchart ( data , height , order , roots , title , type ) }
Attributes Description Default Options
data
height CSS style height.
order asc, desc
roots
title
type Only items with type. line, pie

@{gcindicator ( name , root , roots ) }
Attributes Description Default Options
name Attribute name.
root
roots

@{gckpi ( name , root , roots ) }
Attributes Description Default Options
name Attribute name.
root
roots

@{gconcept ( class , name , root ) }
Attributes Description Default Options
class Writes true or false expressions depending on whether class could be instantiated.
name Attribute name.
root

@{gctable ( name , root , roots ) }
Attributes Description Default Options
name Attribute name.
root
roots

@{gcview ( concept , limit , root , roots ) }
Attributes Description Default Options
concept
limit
root
roots

@{gindicator ( roots , value ) }
Attributes Description Default Options
roots
value Value to search for.

@{gkpi ( format , now , period , roots , then ) }
Attributes Description Default Options
format Format used to show the value. percentage, difference
now
period month, year, lastYear, lastQuarter, lastSemester, semester, lastMonth, quarter
roots
then

@{gtable ( order , roots , rows ) }
Attributes Description Default Options
order asc, desc
roots
rows

@{gview ( entities , limit , matching , ranking , roots , template , tmpl-root ) }
Attributes Description Default Options
entities
limit
matching
ranking
roots
template Template used to show the items.
tmpl-root Templates root.

English02/13/25 08:56Lluís Turró Cutiller