Skip to content

Commit

Permalink
oh-block: Allow setting style properties (#2305)
Browse files Browse the repository at this point in the history
Also evaluate widget expressions in the block title.

---------

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Feb 5, 2024
1 parent eacf1d7 commit f4c02a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div>
<f7-block v-if="visible" class="oh-block" :style="{ 'z-index': (context.editmode) ? 100 - context.parent.component.slots.default.indexOf(context.component) : 'auto !important' }">
<f7-block v-if="visible" class="oh-block" :style="{ 'z-index': (context.editmode) ? 100 - context.parent.component.slots.default.indexOf(context.component) : 'auto !important', ...config.style }">
<hr v-if="context.editmode">
<f7-block-title v-if="context.component.config.title">
{{ context.component.config.title }}
<f7-block-title v-if="config.title">
{{ config.title }}
</f7-block-title>
<f7-menu v-if="context.editmode" class="configure-layout-menu padding-bottom">
<f7-menu-item @click="context.editmode.addWidget(context.component, 'oh-grid-row')" icon-f7="plus" text="Add Row" />
Expand Down

0 comments on commit f4c02a7

Please sign in to comment.