You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is more or less HTML-snippets that contain dynamic content provided by Binding.scala:
76
-
*`Vars[LogEntry]` a list of LogEntries that from the active- or last Adapter run.
77
-
*`Var[Boolean]` is true if the Adapter process is running at the moment.
78
-
*`Var[Option[LogLevel]]` the LogLevel of the last Adapter run - used for the title.
85
+
The client is split in 3 classes:
86
+
87
+
### AdapterClient
88
+
The whole web page is here composed with `Binding.scala data-binding expressions`.
89
+
90
+
It is more or less HTML-snippets that contain dynamic content provided by `Binding.scala data sources`:
91
+
92
+
*`logData: Vars[LogEntry]` a list of LogEntries that from the active- or last Adapter run.
93
+
*`isRunning: Var[Boolean]` is true if the Adapter process is running at the moment.
94
+
*`filterText: Var[String]` is the filter text from the input field.
95
+
*`filterLevel: Var[LogLevel]` is the Level selected from the drop-down.
96
+
*`lastLogLevel: Var[Option[LogLevel]]` the LogLevel of the last Adapter run - used for the title.
79
97
80
98
If you have troubles understanding it, please check out [Binding.scala-Google-Maps](https://github.com/pme123/Binding.scala-Google-Maps), where I explained all the details.
81
99
100
+
#### ScalaJS Routes
101
+
To use Play routes from within the client, we need again something to do.
102
+
My solution is taken from here: [github.com/vmunier/play-scalajs.g8](https://github.com/vmunier/play-scalajs.g8/issues/50)
103
+
104
+
* build.sbt
105
+
```scala
106
+
// Create a map of versioned assets, replacing the empty versioned.js
Here is the documentation: [webjars.org](http://www.webjars.org/documentation)
141
+
142
+
Monkey Patching: With Semantic-UI you sometimes you have activate the Javascript.
143
+
144
+
see [correct-way-to-dynamically-add-semantic-ui-controls](http://stackoverflow.com/questions/30531410/correct-way-to-dynamically-add-semantic-ui-controls)
0 commit comments