pike
08/29/2018, 12:54 AMpike
08/29/2018, 2:08 AMcolumn<DailyCategoryModel, Number>("Voice") {
it.value.categoriesProperty.filter{
it.category == "voice"
}.singleOrNull()?.valueProperty ?: SimpleIntegerProperty(0)
}.cellFormat{ text = "%,d".format(it)}
carlw
08/29/2018, 12:04 PMmikehearn
08/29/2018, 12:12 PMmikehearn
08/29/2018, 12:12 PMamanda.hinchman-dominguez
08/29/2018, 10:27 PMchickenfresh
08/29/2018, 10:44 PMrunAsync{...} ui [...}
is processing?
For example if list
remains to be non-pulled with data I’d like to show this with loading iconcarlw
08/29/2018, 10:55 PMchickenfresh
08/29/2018, 10:59 PMchickenfresh
08/29/2018, 11:03 PMrunAsync
?carlw
08/29/2018, 11:30 PMchickenfresh
08/29/2018, 11:52 PMrunAsync
with progress bar indicator?bj0
08/30/2018, 12:24 AMJsonModel
on an immutable (data) class?carlw
08/30/2018, 12:17 PMRuckus
08/30/2018, 6:24 PMcarlw
08/30/2018, 6:53 PMchickenfresh
08/30/2018, 8:30 PMtextfield
, on finish I press`send` button
it sends post
request to the server, which responds with generated id
(which isn’t incremented as {1, 2, 3, 4, 5) and other details
But I don’t want to wait for respond (which can take, for example, 1 second), I wanna show this message in list with others, but with some status indicator (like a progress circle on right, or if there was an issue with sending - something that indicates it). So, to show this in list with existing messages, I need to create an object, but I don’t have real msg id
so the only solution I have is to create it with null
id
and other fake details, after then on respond I’ll need to replace it with real ones.
Actually, I hate this idea, if I’m sending message
with turned off wifi and, for example, it takes long enough to get respond - switching views would cause in loosing this message
carlw
08/30/2018, 8:34 PMamanda.hinchman-dominguez
08/30/2018, 8:37 PMcarlw
08/30/2018, 8:37 PMcarlw
08/30/2018, 8:38 PMcarlw
08/30/2018, 8:38 PMchickenfresh
08/30/2018, 9:32 PMchickenfresh
08/30/2018, 9:32 PMchickenfresh
08/30/2018, 9:59 PMwhen
in, for example, center = when (something) { is ... -> {<one graphical object>} is... -> {<another>}}
?chickenfresh
08/30/2018, 10:00 PMMainView
rootchickenfresh
08/30/2018, 10:04 PMsomething
should be binded property?carlw
08/30/2018, 10:06 PMchickenfresh
08/30/2018, 10:09 PMvar curSelectedChat = SimpleObjectProperty<ChatViewInstance>()
ChatViewInstance
is sealed class
I’m trying center = when (curSelectedChat.value) { is ChatViewInstance.Test -> label("test") else -> label("another test")}
chickenfresh
08/30/2018, 10:09 PM