From 4f31cbb4a89ebb86aac033868cabadbe694fc4b8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Aug 2023 12:30:56 +0200 Subject: [PATCH] wait #5929 --- app/SubForms/Link/Lottie.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/SubForms/Link/Lottie.php b/app/SubForms/Link/Lottie.php index 7e318d07c..e8cfad2e5 100644 --- a/app/SubForms/Link/Lottie.php +++ b/app/SubForms/Link/Lottie.php @@ -5,6 +5,7 @@ namespace App\SubForms\Link; use App\Fluidbook\Link\Link; use Cubist\Backpack\Magic\Fields\CheckboxBasic; use Cubist\Backpack\Magic\Fields\FilesOrURL; +use Cubist\Backpack\Magic\Fields\SelectFromArray; class Lottie extends Base { @@ -24,5 +25,6 @@ class Lottie extends Base $this->addField('background', \Cubist\Backpack\Magic\Fields\Color::class, __('Couleur de fond'), ['default' => 'rgba(0,0,0,0)']); $this->addField('video_auto_start', CheckboxBasic::class, __('Jouer l\'animation automatiquement'), ['default' => true]); $this->addField('video_loop', CheckboxBasic::class, __('Jouer l\'animation en boucle'), ['default' => false]); + $this->addField('renderer', SelectFromArray::class, __('Moteur de rendu'), ['default' => 'svg', 'ajax' => false, 'options' => ['svg' => 'SVG', 'canvas' => 'Canvas']]); } } -- 2.39.5