From 932ed7c16507da116af443c02ab9536d38541d47 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 24 Jun 2017 19:52:10 +0200 Subject: [PATCH] Minor changes --- mixins/Input.pixy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mixins/Input.pixy b/mixins/Input.pixy index e18d2a3f..b5aa3884 100644 --- a/mixins/Input.pixy +++ b/mixins/Input.pixy @@ -11,4 +11,9 @@ component InputTextArea(id string, value string, label string, placeholder strin component InputNumber(id string, value int, label string, placeholder string, min string, max string) .widget-input label(for=id)= label + ":" - input.widget-element.action(id=id, type="number", value=value, min=min, max=max, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change") \ No newline at end of file + input.widget-element.action(id=id, type="number", value=value, min=min, max=max, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change") + +component InputSelection(id string, value string, label string, placeholder string) + .widget-input + label(for=id)= label + ":" + select.widget-element.action(id=id, value=value, title=placeholder, data-action="save", data-trigger="change")