Add calendar object

This commit is contained in:
fvanroie 2021-03-29 23:17:47 +02:00
parent 512fdde016
commit e4afc62edf
2 changed files with 11 additions and 0 deletions

View File

@ -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);

View File

@ -38,6 +38,7 @@ marks:
- obj
- lmeter
- dropdown
- calendar
- spinner
- roller
- parametrize: