Pages::getUiList($param)

Version 4.1

Return pages in ui list

Return value

Object List

Arguments

$param
Parameters on how to render the list

Example

Render uiList

$uiList = $this->get('pages','order')->getUiList();

Full documentation

Set rendering parameters

$uiList = $this->get('pages','order')->getUiList(Array(
    'title' => 'client address.toimipaikka',
    'description' => 'order_date',
    'infobutton' => true
));

Multiline description

$uiList = $this->get('pages','order')->getUiList(Array(
    'description' => Array(
        'order_date',
        'contact_person',
        'contact_person.phone'
    )
));

Additional values

$uiList = $this->get('pages','order')->getUiList(Array(
    'header' => 'List header',
    'tooltip' => 'total_amount',
    'content' => 'description',
    'color' => '',
    'order' => true,
    'progress' => Array(
        'value' => 'duration',
        'total' => 'duration_estimate',
        'color' => 'green'
    ),
    'amount' => 'total_amount',
    'label' => 'status',
    'info' => 'order_date',
    'menu' => Array(
        'icon' => 'app-time',
        'onclick' => 'Testipoyta.getTyotPanel(this,{nr})'
     ),
    'infobutton' => ''
));

Parameters

name value Default Description
header string array | List header text (Or item values as array)
title string page title parseText() default method arvo()
description string parseText() default method arvo()
content string parseText() default method nayta()
tooltip string parseText() default method arvo()
link bool true Add link to page edit form
color bool false Show page style as color
order bool string | IF true, add row number, calculate()
progress array
amount string calculate()
label string parseText() default method arvo()
info string parseText() default method arvo()
infobutton bool false Add menu icon that opens pane info panel