Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Dashboard API > Methods and objects of the dashboard API > Overwritable methods

Dimensions of widgets (getDimensions)

Scroll Prev Top Next More

This function returns the minimum and maximum size of a widget. Overwriting the function is optional. If it is not overwritten, the size of the widget can be changed as desired by the user. The return must be an associative array. The following keys can be set:

Key

Description

minHeight

Minimal height of a widget

minWidth

Minimal width of a widget

maxHeight

Maximum height of a widget

maxWidth

Maximum width of a widget

 

Please note: The size is expressed as an integer in bit units, which is the smallest unit on the dashboard.

Example:

public function getDimensions()

{

    return [

        'minHeight' => 2,

        'minWidth' => 2,

        'maxHeight' => 4,

        'maxWidth' => 4,

    ];

}