Now with sliders!
Seriously, someone really should clean this mess of code up soon
This commit is contained in:
parent
d121928df6
commit
efc5af37ce
3 changed files with 45 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue