semilimes mcu sdk 0.1
semilimes Software Development Kit for microcontrollers
Loading...
Searching...
No Matches
FcMultipleChoice Class Reference

Public Member Functions

 FcMultipleChoice (char *json, char *jsonArray, char *jsonArray2)
 
void setObj (char *refname, char *title, bool reqSel)
 
void addOptions (char *name, char *value)
 
void appendOptions ()
 
void addValues (char *value)
 
void appendValues ()
 

Constructor & Destructor Documentation

◆ FcMultipleChoice()

FcMultipleChoice::FcMultipleChoice ( char * json,
char * jsonArray,
char * jsonArray2 )
inline
Parameters
json- it is the char array that will contain the whole json script
jsonArray- it is a temporary char array that will contain the Options
jsonArray2- it is a temporary char array that will contain the Values
Returns
void

Member Function Documentation

◆ addOptions()

void FcMultipleChoice::addOptions ( char * name,
char * value )
Parameters
name- is the option identifier
value- text displayed to the user
Returns
void

◆ addValues()

void FcMultipleChoice::addValues ( char * value)
Parameters
value- is an array containing the names of the choices that are selected on submission: {"name" : "choice1","value": "Choice 1"}
Returns
void

◆ appendOptions()

void FcMultipleChoice::appendOptions ( )
Parameters
Parameters

return void

◆ appendValues()

void FcMultipleChoice::appendValues ( )
Parameters
voidFcMultipleChoice::appendValues()
Returns
void

◆ setObj()

void FcMultipleChoice::setObj ( char * refname,
char * title,
bool reqSel )
Parameters
refname- it is the reference name of the object
title- is the global label displayed at the beginning of the component
reqSel- indicates if the selection is required to submit the form
Returns
void

The documentation for this class was generated from the following files: