mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
13 lines
325 B
C
13 lines
325 B
C
#include <LCUI.h>
|
|
|
|
void anchor_basic_init(ui_widget_t *parent)
|
|
{
|
|
ui_widget_t *a;
|
|
|
|
a = ui_create_widget("a");
|
|
ui_widget_add_class(a, "anchor-basic-demo");
|
|
ui_text_set_content(a, "LCUI Homepage");
|
|
ui_widget_set_attr(a, "href", "https://lcui.dev");
|
|
ui_widget_append(parent, a);
|
|
}
|