Now with sliders!

Seriously, someone really should clean this mess of code up soon
This commit is contained in:
uwap 2017-09-17 05:35:20 +02:00
parent d121928df6
commit efc5af37ce
3 changed files with 45 additions and 2 deletions

View file

@ -10,7 +10,7 @@ declare type Topic = {
declare type Topics = Map<string,Topic>;
declare type ControlUI = {
type: "toggle" | "dropDown",
type: "toggle" | "dropDown" | "slider",
text: string,
topic: string,
@ -22,7 +22,12 @@ declare type ControlUI = {
toggled?: (val: any) => boolean,
// DROPDOWN optional properties
options?: Map<string,any> //options for dropDown
options?: Map<string,any>, //options for dropDown
// SLIDER optional properties
min?: number,
max?: number,
step?: number
};
declare type Control = {