Widgets
Content widget components
group
4 min
the group widget allows widgets to be combined to create a single widget the group widget can be used only on sizes 2x4, 4x2, and 4x4 configuration options core structure children the children property includes all available widgets combining two widgets is typical for group widgets other options footer add text to the footer of the widget footeralign align the footer text to left , right , center placeholders specify a placeholder text to display if there is no data, for example title no data to display split the option to group the widgets vertically or horizontally by default, widgets are grouped vertically examples and code snippets group with chart and list (size 4x4, split horizontal) for the 4x4 widget, we have a split option in this property, a vertical or horizontal layout is possible for the widget in this example, a combination of a chart and a list are used in a horizontal split examples see the full example using static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/static data/group chart list horizontal jigx group chartlist (static) widgets list horizontal 4x4 type widget group options split horizontal children \ type widget chart options chart type component line chart options chart isanimated true yaxis min 0 labels format numberstyle currency compactdisplay short notation compact tickamount 8 isfirsttickhidden true isfirstlabelhidden true xaxis categories \ q1 \ q2 \ q3 \ q4 series \ data =\[{"x" "q1/20", "y" 25000, "color" "color2"}, {"x" "q2/20", "y" 32000, "color" "color2"}, {"x" "q3/20", "y" 45000, "color" "color2"}, {"x" "q4/20", "y" 86000, "color" "color2"}] name year 2019 animation direction left to right layout area gradient datalabels \ isenabled true \ data =\[{"x" "q1/20", "y" 12000, "color" "color3"}, {"x" "q2/20", "y" 48000, "color" "color3"}, {"x" "q3/20", "y" 36000, "color" "color3"}, {"x" "q4/20", "y" 120000, "color" "color3"}] name year 2020 animation direction left to right layout area gradient datalabels \ isenabled true legend ishidden false \ type widget list options data =@ctx datasources transactions item type component list item options divider solid title =@ctx current item company subtitle =@ctx current item description description =$frommillis($tomillis(@ctx current item date), '\[m01]/\[d01]/\[y01]') label title =@ctx current item amount & '$' ishidden false color \ when =(@ctx current item positive = true) color color2 \ when =(@ctx current item positive = false) color color4 leftelement element icon icon =@ctx current item positive = true ? 'up' 'down' style ispositive =@ctx current item positive iserror =@ctx current item positive = false ? "true" "false" grid item children \ type component grid item options size "4x4" children type component jig widget options jigid group chart list horizontal widgetid list horizontal 4x4 group with chart and list (size 4x4, split vertical) in this example, a combination of a chart and list was configured with a vertical split examples see the full example using static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/static data/group chart list vertical jigx group chartlistvertical (static) widgets listvertical 4x4 type widget group options split vertical children \ type widget chart options chart type component line chart options xaxis ishidden true yaxis max 6 min 3 series \ data =@ctx datasources chart color color1 layout area gradient top type component titles options title solana subtitle usdt align left icon currency dollar iconcolor color2 bottom type component trend options title 92,40 usdt / sol style isalignright false isvaluebottom true value +21 2 format numberstyle unit unit percent \ type widget list options data =@ctx datasources list item type component list item options title =@ctx current item title subtitle =@ctx current item subtitle label title =@ctx current item change > 0 ? '+' & @ctx current item change @ctx current item change color \ when =@ctx current item change > 0 color color2 \ when =@ctx current item change < 0 color color4 grid item children \ type component grid item options size "4x4" children type component jig widget options jigid group chart list vertical widgetid listvertical 4x4 group with avatar and list (size 4x2) this group widget represents a combination of the avatar with a list after clicking on the widget, the list component is shown examples see the full example using static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/static data/group avatar list jigx see the full example using dynamic data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/dynamic data/group avatar list dynamic jigx datasources see the full datasource for static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/datasources/employees/employees static jigx see the full datasource for dynamic data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/datasources/employees/employees dynamic jigx group avatar list (static) widgets groupavatar 4x2 type widget group options children \ type widget avatar options text '' uri https //images unsplash com/photo 1591084728795 1149f32d9866?ixlib=rb 1 2 1\&ixid=mnwxmja3fdb8mhxwag90by1wywdlfhx8fgvufdb8fhx8\&auto=format\&fit=crop\&w=928\&q=80 \ type widget list options data =@ctx datasources group list item type component list item options title =@ctx current item name leftelement element avatar text '' uri =@ctx current item img group avatar list (dynamic) widgets groupavatardd 4x2 type widget group options children \ type widget avatar options text '' uri =@ctx datasources avatar dynamic photo \ type widget list options data =@ctx datasources employees dynamic item type component list item options title =@ctx current item firstname subtitle =@ctx current item lastname leftelement element avatar text '' uri =@ctx current item photo grid item # grid item for the static jigx children \ type component grid item options size "4x2" children type component jig widget options jigid group avatar list widgetid groupavatar 4x2 group with value and bar chart (size 2x4) this group widget represents a combination of the value and bar chart after clicking on the widget, the bar chart is shown examples see the full example using static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/static data/group value chart jigx see the full example using dynamic data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/jigs/widgets/group/dynamic data/group value chart dynamic jigx datasources see the full datasource for static data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/datasources/charts/static/series1 jigx see the full datasource for dynamic data in github https //github com/jigx com/jigx samples/blob/main/quickstart/jigx samples/datasources/charts/dynamic/series1 dynamic jigx group value bar chart (static) widgets groupvalue 2x4 type widget group options children \ type widget value options value 7500 top type component titles options title daily revenue \ type widget chart options chart type component bar chart options series \ data =@ctx datasources series1 group value chart (dynamic) widgets groupvaluedd 2x4 type widget group options children \ type widget value options value =@ctx datasources value dynamic value top type component titles options title daily revenue \ type widget chart options chart type component bar chart options series \ data =@ctx datasources series1 dynamic grid item # grid item for the static jigx children \ type component grid item options size "2x4" children type component jig widget options jigid group value chart widgetid groupvalue 2x4