@@ -134,7 +134,7 @@ class SearchedTextDataPane(val layoutData: String,
134
134
displayText <<< text
135
135
136
136
private val seachItems : Observable [Seq [SearchElement ]] = text.map(s =>
137
- s.toCharArray
137
+ s.toCharArray.filterNot(p => p == ' \r ' )
138
138
.foldRight(List [List [Char ]]())((el, acc) =>
139
139
acc.headOption.map(head => el :: head).getOrElse(List (el)) :: acc)
140
140
.zipWithIndex)
@@ -213,6 +213,7 @@ class TableOutputDataPane[T](val layoutData: String,
213
213
214
214
private val fieldToCols = fields.map(field => FieldToColumn (title = field._1, data = field._2, onSort = if (sorting.isDefinedAt(field._1)) Some (publishSubject()) else None ))
215
215
for (f2c <- fieldToCols; onSort <- f2c.onSort; asc <- onSort) sortRecords(f2c.title, asc = asc)
216
+ for (x <- onLoadNewData; y <- x) println(" Read done " )
216
217
217
218
override def content (): UiWidget = UiPanel (layoutData, Grid (" margin 2" ), items = Seq (
218
219
new SearchElementsPane [T ](" growx" , cachedRecordsSubj, searchSelection, compare, searchText),
@@ -223,7 +224,7 @@ class TableOutputDataPane[T](val layoutData: String,
223
224
selection = selectedRecords,
224
225
columns = fieldToCols.map(f2c => UiColumn [T ](title = f2c.title, value = f2c.data, onSort = (asc : Boolean ) => f2c.onSort.get << asc))
225
226
),
226
- onLoadNewData.map(_ => UiLink (" growx" , text = " Click to read next portion of data" , onAction = onLoadNewData )))
227
+ onLoadNewData.map(action => UiLink (" growx" , text = " Click to read next portion of data" , onAction = action )))
227
228
.filter(_.isDefined).map(_.get)),
228
229
UiTabPanel (" grow" , tabs = behaviorSubject(Seq (
229
230
UiTab (label = " Raw Output" , content = new SearchedTextDataPane (" grow" , text = selectedRecordValue, defaultSearch = searchText)),
0 commit comments