From bb725bab5cff4aa467a3e90dfe86c6dc6b07fd50 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 13 Dec 2022 19:26:39 +0100
Subject: [PATCH] component tester: add button

---
 public_html/pages/component.php | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/public_html/pages/component.php b/public_html/pages/component.php
index 71ecbfa..a7792da 100644
--- a/public_html/pages/component.php
+++ b/public_html/pages/component.php
@@ -47,6 +47,13 @@ $aPresets=[
         'regular'=>'regular',
         'large'=>'large'
     ],
+    'size'=>[
+        ''=>'no value',
+        'lg'=>'',
+        'sm'=>'',
+        'xs'=>'',
+        'flat'=>'',
+    ],
     // for keys: dismissable
     'yesno'=>[
         ''=>'no value', 
@@ -89,6 +96,18 @@ $aComponents=[
         ]
     ],
     // ------------------------------------------------------------
+    'button'=>[
+        'label'=>'Button',
+        'description'=>'Buttons',
+        'method'=>'getButton',
+
+        'params'=>[
+            'type'        => ['select'=>$aPresets['type'],     'default'=>'primary'],
+            'size'        => ['select'=>$aPresets['size'],     'default'=>''],
+            'text'        => ['default'=>'Click me'],
+        ]
+    ],
+    // ------------------------------------------------------------
     'infobox'=>[
         'label'=>'Infobox',
         'description'=>'',
-- 
GitLab