create-mendix-widget-gleam 1.1.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/package.json +1 -1
- package/src/index.mjs +152 -8
- package/template/docs/glendix_guide.md +839 -228
- package/template/gleam.toml +1 -1
- package/template/src/components/hello_world.gleam +2 -2
package/template/gleam.toml
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// 위젯 런타임과 Studio Pro 미리보기에서 공유
|
|
3
3
|
|
|
4
4
|
import glendix/react.{type ReactElement}
|
|
5
|
+
import glendix/react/attribute
|
|
5
6
|
import glendix/react/html
|
|
6
|
-
import glendix/react/prop
|
|
7
7
|
|
|
8
8
|
/// Hello World UI 렌더링
|
|
9
9
|
pub fn render(sample_text: String) -> ReactElement {
|
|
10
|
-
html.div(
|
|
10
|
+
html.div([attribute.class("widget-hello-world")], [
|
|
11
11
|
react.text("Hello " <> sample_text),
|
|
12
12
|
])
|
|
13
13
|
}
|