From f78a5761cc68a5286166c2315e559dfc0c4376ad Mon Sep 17 00:00:00 2001 From: lhdjply Date: Fri, 12 Apr 2024 01:10:23 +0800 Subject: [PATCH] docs(calendar): move instruction to the usage section (#6045) Signed-off-by: lhdjply --- docs/widgets/calendar.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/widgets/calendar.rst b/docs/widgets/calendar.rst index 6666fcb66..14f49f23d 100644 --- a/docs/widgets/calendar.rst +++ b/docs/widgets/calendar.rst @@ -82,6 +82,21 @@ where ``years_list`` is a pointer to the custom years list. It can be a constant like ``static const char * years = "2023\n2022\n2021\n2020\n2019";``, or can be generated dynamically into a buffer as well. +Chinese calendar +---------------- + +The Chinese calendar is a traditional cultural tool that integrates elements +such as the lunar calendar, solar terms, and traditional festivals. It is +widely used in Chinese social life, helping people understand the dates of +the lunar calendar, arrange festival activities, and inherit the excellent +traditional culture of the Chinese nation. Whether in families, businesses, +or education, the Chinese calendar plays an irreplaceable role, enabling +people to better understand and appreciate the charm of Chinese traditional +culture. + +If you want to use the Chinese calendar, please +use :cpp:expr:`lv_calendar_set_chinese_mode(calendar, true)` to enable it. + .. _lv_calendar_events: Events @@ -125,21 +140,6 @@ Drop-down :cpp:expr:`lv_calendar_header_dropdown_create(calendar)` creates a header that contains 2 drop-drown lists: one for the year and another for the month. -Chinese calendar --------------- - -The Chinese calendar is a traditional cultural tool that integrates elements -such as the lunar calendar, solar terms, and traditional festivals. It is -widely used in Chinese social life, helping people understand the dates of -the lunar calendar, arrange festival activities, and inherit the excellent -traditional culture of the Chinese nation. Whether in families, businesses, -or education, the Chinese calendar plays an irreplaceable role, enabling -people to better understand and appreciate the charm of Chinese traditional -culture. - -If you want to use the Chinese calendar, please -use :cpp:expr:`lv_calendar_set_chinese_mode(calendar, true)` to enable it. - .. _lv_calendar_example: Example