``` class EntryFragment : ListCellFragment<Entr...
# tornadofx
k
Copy code
class EntryFragment : ListCellFragment<Entry>() {
  val entryModel: EntryModel = EntryModel(itemProperty)

  override val root = titledpane {
    Platform.runLater {
      titleProperty.bind(entryModel.command)
      println(entryModel.command)
    }
    label {
      textProperty().bind(entryModel.output)
      toggleClass(KermStyle.warning, entryModel.error)
    }
    Platform.runLater { show() }
  }
}