mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 21:26:43 +00:00
Add calendar object
This commit is contained in:
parent
512fdde016
commit
e4afc62edf
@ -1047,6 +1047,16 @@ void hasp_new_object(const JsonObject& config, uint8_t& saved_page_id)
|
||||
}
|
||||
break;
|
||||
|
||||
case LV_HASP_CALENDER:
|
||||
case HASP_OBJ_CALENDAR:
|
||||
obj = lv_calendar_create(parent_obj, NULL);
|
||||
// lv_obj_align(obj, NULL, LV_ALIGN_IN_TOP_MID, 0, 20);
|
||||
if(obj) {
|
||||
lv_obj_set_event_cb(obj, selector_event_handler);
|
||||
obj->user_data.objid = LV_HASP_CALENDER;
|
||||
}
|
||||
break;
|
||||
|
||||
/* ----- Other Object ------ */
|
||||
// default:
|
||||
// return LOG_WARNING(TAG_HASP, F("Unsupported Object ID %u"), objid);
|
||||
|
@ -38,6 +38,7 @@ marks:
|
||||
- obj
|
||||
- lmeter
|
||||
- dropdown
|
||||
- calendar
|
||||
- spinner
|
||||
- roller
|
||||
- parametrize:
|
||||
|
Loading…
x
Reference in New Issue
Block a user