Files
librenms-librenms/resources/views/components/tab.blade.php
Tony Murray 0d246a6ffc Custom Maps: geo map and color backgrounds (#16020)
* Custom Maps: geo map and color background
tabs blade component
geo-map blade component and related script enhancements

* Update css/js

* style fixes

* update db_schema.yaml

* fix db_schema hand edit

* ignore phpstan being wrong

* Handle null

* another possible null spot

* Use standard file cache for custom map background images

* Create map->image as jpeg so we can compress it

* whitespace fix

* Fix background cancel button when other type is selected than the saved type

* Save and restore layer

* Map must exist before creating static image

* Don't show set as image button for Google and Bing.
Bing gives an odd error, but Google won't work.
2024-05-13 08:12:59 -05:00

17 lines
369 B
PHP

@props(['name', 'value' => null])
<div x-data="{
id: '',
name: {{ Js::from($name) }},
value: {{ Js::from($value ?: $name) }}
}"
x-show="value === activeTab"
role="tabpanel"
:aria-labelledby="`tab-${id}`"
:id="`tab-panel-${id}`"
x-init="id = registerTab(name, value)"
{{ $attributes }}
>
{{ $slot }}
</div>