Layout Definition

Each Page have a layout definition described in the layout and layoutoption keys.

The first page of the page have this infos in the App JSON root hash.

Layout key

the layout view should be parse differently if the page is the last child of the tree

Category Page

ValueDescriptionException
lista list viewdefault
grid1a grid view with 1 column 
grida grid view with 2 columns 
grid3grid view with 3 columns 
grid4grid view with 4 columns 
grid5grid view with 5 columns 
tabslidetop slider 
lowpaneltab panelonly available on the first page
fixedmenuthe app have a fixed menu with a list layout  accessible using the top left buttononly available on the first page
fixedmenu-gridthe app have a fixed menu with a grid layout accessible using the top left buttononly available on the first page

 

Content Page

ValueDescriptionException
listthe page should be represented with a list viewdefault
gridthe page should be represented with a grid view 
sliderthe page should show directly the first element content 

Audio Page

The audio page have only the list view available

Image Gallery Page

The grid view in the Image Gallery is a 3 columns view or 4 columns on big devices

News Page

The grid view for news page is a view where the title is overlapped on the image bottom

Layoutoption key

The layoutoption key is an hash containing information to extended the selected layout

 

key
value
description
rotationbooleanenable rotation (global value to set on homepage)
hideTitlebooleanhide cell title
hideDescriptionbooleanhide cell description
nrowsintnumbor of visibile rows
row_heightint

rows height

valign"top" | "middle" | "bottom"

table vertical alignment

halign"left" | "center" | "right"

table horizontal alignment

widthint (Es. 80 ->80%)table width
scroll"vertical" | "horizontal"

scrolling direction

cell_margin[int,int,int,int]

cell margins [margintop, marginright, marginbottom, marginleft]

colorschemesee below

background color for odd / even rows

  • cella (più importante) > colonna > riga (meno importante)
bannershash (see below)banners options
tabslidehash (see below)tabslide options
lowpanelhash (see below)lowpanel options

fixedmenu_width

int

fixedmenu size in pixel

banners

  • banners are shown under the header bar;
  • there can only be one banner of type "web" or "text", while if there are more "image" ones a horizontal slider is used;
  • in case of type "web" or "text" the webview height is defined in %.
"banners":{
	"portrait":[{
		"type":"web",
		"url":"an_url",
		"height":20
	},{
		"type":"text",
		"txt":"base_64_encode_txt",
		"height":20 
	}],
	"landscape":[{
		"type":"image",
		"url":"an_image_url"
	},{
		"type":"image",
		"url":"another_image_url"
	}],
	"shadow":true|false
}

Colorscheme

1 index based, so first row and column are odd

keyvaluedescription
row_odd_bgcolorstringodd row background color
row_odd_bgalphafloatodd row background color alpha
row_even_bgcolorstringeven row background color
row_even_bgalphafloateven row background color alpha
col_odd_bgcolorstringodd column background color
col_odd_bgalphafloatodd column background color apha
col_even_bgcolorstringeven column background color
col_even_bgalphafloateven column background color apha

tabslide

key
value
description

bg_bgcolor 

stringbackground color

bg_bgalpha 

floatbackground color alpha

text_color

stringtext color

text_alpha

floattext color alpha

selected_color

stringselected element color

selected_alpha

floatselected element color alpha

lowpanel

chiave
valore
ruolo

bg_bgcolor 

stringbackground color

bg_bgalpha 

floatbackground color alpha

text_color

stringtext color

text_alpha

floattext color alpha
selected_bg_bgcolorstringselected background color
selected_bg_bgalphafloatselected background color alpha
selected_text_colorstringselected text color
selected_text_alphafloatselected text color alpha

Cell


key
value
description
overlaytrue | falsetext overlayed on image
text_position"top" | "bottom" | "right" | "left"position of the text relative to the image
cell_valign"top" | "middle" | "bottom"

vertical alignment of the cell content

text_valign"top" | "middle" | "bottom"text vertical alignment
img_style"default" | "fill" | "fill-resize"

image styling

Illustrazione

imgsize[int,int] default [80,80]
img_valign"top" | "middle" | "bottom"image vertical alignment
img_halign"left" | "center" | "right"image horizontal alignment
text_align"left" | "center" | "right"text alignment
bg_bgcolor (era:bgcolor)stringcell background color
bg_bgalpha (era: bgalpha)floatcell background color alpha
text_bgcolorstringcell text background color
text_bgalphafloatcell text background color alpha
title_colorstringcell title color
title_alphafloatcell title color alpha
desc_colorstringcell description color
desc_alphafloatcell description color alpha
tablet_bgcolorstringtablet cell background color
tabtet_bgalphafloattablet cell background color alpha
tablet_title_colorstringtablet cell title color
tablet_title_alphafloattablet cell title color alpha