Current section
Files
Jump to
Current section
Files
src/mendix_widget_gleam.gleam
// Mendix Pluggable Widget - "Hello World"
// React 함수형 컴포넌트: fn(JsProps) -> Element
import components/hello_world
import glendix/mendix.{type JsProps}
import redraw.{type Element}
/// 위젯 메인 함수 - Mendix 런타임이 React 컴포넌트로 호출
pub fn widget(props: JsProps) -> Element {
let sample_text = mendix.get_string_prop(props, "sampleText")
hello_world.render(sample_text)
}