82 uint8_t itemPosition, uint8_t numberOfRows,
MenuItem* next =
nullptr);
85 uint8_t itemPosition, uint8_t numberOfRows,
MenuItem* next =
nullptr);
87 void copyValue(
char* buffer,
int bufferSize)
const {
92 int getRuntimeId()
const {
return int(
id); }
94 uint8_t getNumberOfParts()
const {
return noOfParts; }
95 void copyRuntimeName(
char* buffer,
int bufferSize)
const { renderFn((
RuntimeMenuItem*)
this, itemPosition,
RENDERFN_NAME, buffer, bufferSize);}
97 uint8_t getNumberOfRows()
const {
return noOfParts; }
98 uint8_t getItemPosition()
const {
return itemPosition; }
100 void setNumberOfRows(uint8_t rows) {
200 enum ListMode: uint8_t { CUSTOM_RENDER, RAM_ARRAY, FLASH_ARRAY };
202 const char*
const* dataArray;
204 ListMode listMode = CUSTOM_RENDER;
214 ListMode getListMode()
const {
return listMode;}
215 bool isActingAsParent()
const {
return itemPosition == LIST_PARENT_ITEM_POS; }
216 uint8_t getActiveIndex()
const {
return activeItem; }
217 void setActiveIndex(uint8_t idx) {
221 const char*
const* getDataArray() {
return dataArray; }
542 enum DateFormatOption { DD_MM_YYYY, MM_DD_YYYY, YYYY_MM_DD };
545 static char separator;
546 static DateFormatOption dateFormatMode;
580 dateFormatMode = fmt;
587 return dateFormatMode;
592 void setDate(
DateStorage newDate) { data = newDate; }
594 void setDateFromString(
const char *dateText);