diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d3de3ad..ae07451 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -19,7 +19,7 @@ { "label": "npmInstall", "type": "shell", - "command": "pushd examples/client; npm i; popd; NODE_OPTIONS='--openssl-legacy-provider' DEV=1 sbt \"client/fastLinkJS\"", + "command": "pushd examples/client; npm i; popd; NODE_OPTIONS='--openssl-legacy-provider' DEV=1 sbt \"generator/compile; client/fastLinkJS\"", "presentation": { "panel": "dedicated", "group": "runDevCmd", diff --git a/examples/client/index.html b/examples/client/index.html index f13fb16..f098f7a 100644 --- a/examples/client/index.html +++ b/examples/client/index.html @@ -10,6 +10,14 @@ Demo Laminar SAP UI5 bindings + diff --git a/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala b/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala index c86c37a..6a1e52a 100644 --- a/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala +++ b/modules/core/src/main/scala/dev/cheleb/scalamigen/Form.scala @@ -97,11 +97,9 @@ object Form extends AutoDerivation[Form] { values: List[A] = List.empty )(using factory: WidgetFactory): HtmlElement = factory - .renderPanel(caseClass.typeInfo.full) + .renderPanel(caseClass.typeInfo.short) .amend( - // _.id := caseClass.typeInfo.full, - // _.headerText := caseClass.typeInfo.full, - // _.headerLevel := TitleLevel.H3, + className := "panel panel-default", caseClass.params.map { param => val isOption = param.deref(variable.now()).isInstanceOf[Option[_]]