Added new items to visual consoles
This commit is contained in:
parent
14fc8ef2b1
commit
b14c77862e
|
@ -2066,6 +2066,7 @@ if ($action === 'create_demo_data') {
|
||||||
'label' => 4,
|
'label' => 4,
|
||||||
'icon' => 5,
|
'icon' => 5,
|
||||||
'bubble' => 9,
|
'bubble' => 9,
|
||||||
|
'box' => 12,
|
||||||
'event_history' => 14,
|
'event_history' => 14,
|
||||||
'circular_progress_bar' => 15,
|
'circular_progress_bar' => 15,
|
||||||
'circular_progress_bar_int' => 16,
|
'circular_progress_bar_int' => 16,
|
||||||
|
@ -2398,6 +2399,16 @@ if ($action === 'create_demo_data') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($items_array['type'] === 'box') {
|
||||||
|
if (isset($items_array['border_color']) === true) {
|
||||||
|
$element_values['border_color'] = $items_array['border_color'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($items_array['fill_color']) === true) {
|
||||||
|
$element_values['fill_color'] = $items_array['fill_color'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($items_array['type'] === 'icon') {
|
if ($items_array['type'] === 'icon') {
|
||||||
if (isset($items_array['image']) === false
|
if (isset($items_array['image']) === false
|
||||||
|| is_string($items_array['image']) === false
|
|| is_string($items_array['image']) === false
|
||||||
|
@ -2485,6 +2496,8 @@ if ($action === 'create_demo_data') {
|
||||||
$element_values['height'] = $items_array['height'];
|
$element_values['height'] = $items_array['height'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$element_values['show_on_top'] = (isset($items_array['show_on_top']) === true && $items_array['show_on_top'] === true) ? 1 : 0;
|
||||||
|
|
||||||
// Check here percentile items as height is used for max value
|
// Check here percentile items as height is used for max value
|
||||||
if ($items_array['type'] === 'percentile' || $items_array['type'] === 'bubble' || $items_array['type'] === 'circular_progress_bar' || $items_array['type'] === 'circular_progress_bar_int') {
|
if ($items_array['type'] === 'percentile' || $items_array['type'] === 'bubble' || $items_array['type'] === 'circular_progress_bar' || $items_array['type'] === 'circular_progress_bar_int') {
|
||||||
if (isset($items_array['agent_name']) === true) {
|
if (isset($items_array['agent_name']) === true) {
|
||||||
|
|
Loading…
Reference in New Issue