Add setters for DynamicNumber prefix and suffix texts (#90)
required by RX stat labeling on range check, rf tuning, low/critical warning pages
This commit is contained in:
+10
@@ -178,6 +178,16 @@ class DynamicNumber : public StaticText
|
||||
}
|
||||
}
|
||||
|
||||
void setPrefix(const char * value) {
|
||||
prefix = value;
|
||||
updateText();
|
||||
}
|
||||
|
||||
void setSuffix(const char * value) {
|
||||
suffix = value;
|
||||
updateText();
|
||||
}
|
||||
|
||||
protected:
|
||||
T value = 0;
|
||||
std::function<T()> numberHandler;
|
||||
|
||||
Reference in New Issue
Block a user