openhab-webui/bundles/org.openhab.ui/doc/components
JustinGeorgi 6ceeee3b6e
Add oh-context component (#2533)
Closes #2437, Closes #2148

This PR adds a new component, the oh-context. Similar to the repeater,
this component is not rendered, but injects information into the widget
at it's tree location.

The component allows to inject these three things into the widget:
* functions - using the arrow function syntax, named functions can be
declared and reused in all subsequent expressions
* constants - constants can be defined as either single values, arrays,
or objects
* variables - variables can be defined with default values. These
variables are local in scope to the oh-context and it's descendants and
take precedence over other variables of the same name from higher
contexts.
  * Variables are not divided into global vs local explicitly. But a
oh-context used as the root component of a widget will have its
variables in the context of all the other components on that widget and
thus they essentially have a global context within that widget.
  * In contrast to the basic widget variables, oh-context variables do
have bi-directional passage between a main widget and a sub widget.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
2024-06-01 18:31:27 +02:00
..
images Add new capabilities to oh-knob component using vue-round-slider (#1703) 2023-02-12 20:21:15 +01:00
src [documentation] Escape quotes in generate.js script (#1116) 2021-06-27 18:16:10 +02:00
index.md Add oh-context component (#2533) 2024-06-01 18:31:27 +02:00
oh-aggregate-series.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-block.md Corrected small typo (#1076) 2021-05-31 08:57:32 +02:00
oh-button.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-calendar-axis.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-calendar-series.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-canvas-item.md New fixed layout: canvas (#1100) 2021-10-01 15:47:57 +02:00
oh-canvas-layer.md Addition of graphical layer management for canvas layouts (#1187) 2021-11-07 20:14:57 +01:00
oh-canvas-layout.md Fixes to canvas layout display in full screen (#1554) 2022-12-11 14:11:28 +01:00
oh-category-axis.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-cell.md oh-trend: Fix type of trendlineSampling parameter (#1995) 2023-08-19 19:48:29 +02:00
oh-chart-datazoom.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-grid.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-legend.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-page.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-chart-title.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-toolbox.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-tooltip.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart-visualmap.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-chart.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-clock-card.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-clock.md Migrate clock to system widget (#977) 2021-03-27 00:36:23 +01:00
oh-colorpicker-card.md oh-colorpicker: Replace defaultColor option with an actual default color (#2270) 2024-01-14 14:50:56 +01:00
oh-colorpicker-cell.md oh-colorpicker: Replace defaultColor option with an actual default color (#2270) 2024-01-14 14:50:56 +01:00
oh-colorpicker-item.md oh-colorpicker: Replace defaultColor option with an actual default color (#2270) 2024-01-14 14:50:56 +01:00
oh-colorpicker.md oh-colorpicker: Replace defaultColor option with an actual default color (#2270) 2024-01-14 14:50:56 +01:00
oh-context.md Add oh-context component (#2533) 2024-06-01 18:31:27 +02:00
oh-data-series.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-equipment-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-gauge-card.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-gauge.md Add new capabilities to oh-knob component using vue-round-slider (#1703) 2023-02-12 20:21:15 +01:00
oh-grid-col.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-grid-layout.md Fix height description in grid layout properties (#1023) 2021-05-09 10:14:43 +02:00
oh-grid-row.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-icon.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-image-card.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-image.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-input-card.md oh-input: Update component docs & Minor fixes (#2215) 2023-12-13 00:25:45 +01:00
oh-input-item.md oh-input: Update component docs & Minor fixes (#2215) 2023-12-13 00:25:45 +01:00
oh-input.md Update component docs (#2223) 2023-12-15 22:06:01 +01:00
oh-knob-card.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-knob-cell.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-knob.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-label-card.md oh-trend: Fix type of trendlineSampling parameter (#1995) 2023-08-19 19:48:29 +02:00
oh-label-cell.md oh-trend: Fix type of trendlineSampling parameter (#1995) 2023-08-19 19:48:29 +02:00
oh-label-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-link.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-list-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-list-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-list.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-location-card.md Add CO2 measurement badge to location card (#2068) 2023-09-16 18:49:17 +02:00
oh-map-circle-marker.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-map-marker.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-map-page.md Fix link for oh-map-page docs (#1704) 2023-02-16 23:18:35 +01:00
oh-masonry.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-plan-marker.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-plan-page.md New SIP client component & widget (#1453) 2022-07-29 22:23:45 +02:00
oh-player-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-player-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-player.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-property-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-repeater.md `oh-repeater`: Make caching configurable (#1963) 2023-07-15 23:58:53 +02:00
oh-rollershutter-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-rollershutter-cell.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-rollershutter-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-rollershutter.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-sipclient-card.md `oh-sipclient`: Various fixes & improvements (#1857) 2023-05-07 14:22:56 +02:00
oh-sipclient.md `oh-sipclient`: Various fixes & improvements (#1857) 2023-05-07 14:22:56 +02:00
oh-slider-card.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-slider-cell.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-slider-item.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-slider.md `oh-slider` & `oh-knob`: Add option to ignore displayState (#1924) 2023-06-13 15:32:35 +02:00
oh-stepper-card.md `oh-knob` & `oh-stepper`: Add offset functionality (#1875) 2023-05-07 14:20:42 +02:00
oh-stepper-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-stepper.md `oh-knob` & `oh-stepper`: Add offset functionality (#1875) 2023-05-07 14:20:42 +02:00
oh-swiper-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-swiper.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-time-axis.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-time-series.md Charts: Add option to extend initial period to future & Refactor prop defs (#2545) 2024-04-21 17:13:39 +02:00
oh-toggle-card.md Fix zero margin not applied in oh-grid-layout (#973) 2021-03-25 20:35:39 +01:00
oh-toggle-item.md Enable dynamic icons only for some icon types in default list widget (#1874) 2023-05-07 15:22:46 +02:00
oh-toggle.md Add possibility to edit JSON variable keys in widgets (#1556) 2022-12-11 12:35:11 +01:00
oh-trend.md oh-trend: Fix type of trendlineSampling parameter (#1995) 2023-08-19 19:48:29 +02:00
oh-value-axis.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-video-card.md Add poster image option to video widget (#1469) 2022-08-23 20:33:31 +02:00
oh-video.md Add a Scene settings menu entry and editor (#1662) 2023-02-16 22:25:26 +01:00
oh-webframe-card.md Component docs (#900) 2021-03-01 15:42:17 +01:00
oh-webframe.md Component docs (#900) 2021-03-01 15:42:17 +01:00