OnTheFly: adding displayBadge option to replace button by badge

When using displayBadge=true, you need to pass buttonText=string with badge content.

Limitation: onTheFly cannot use directly PersonRenderBox to display badge,
because it don't have person object in props !
This commit is contained in:
2021-10-01 17:38:19 +02:00
parent daa8b03c8b
commit fbd17a1de6
6 changed files with 50 additions and 30 deletions

View File

@@ -4,6 +4,7 @@
:id="context.id"
:action="context.action"
:buttonText="options.buttonText"
:displayBadge="options.displayBadge === 'true'"
@saveFormOnTheFly="saveFormOnTheFly">
</on-the-fly>
</template>