Comments (2)
It's a bit difficult to answer your questions without having the running application. But this is what I can say:
- Popover seems to be correctly configured (manual mode) and you should be able to show and hide it with
showPopover
andhidePopover
methods. - There is no way you can "wait" for the backed call to complete outside of
launch
. But you can pass some callback function or even the button widget itself to theselectTest
method and execute some actions (e.g. show the poprover) at the end of thelaunch
block (afterdispatch
call). - To display progress bar you can use
kvision-pace
module. Or use any other kind of progress indicator started at the beginning of yourlaunch
and stopped at the end.
from kvision.
Thank you. I implemented your suggestion to pass the button and enable/show popover after the backend call has completed. This solved my issues 1 & 3. It's working okay when fetching each record everytime (i.e not loading into collection to reuse in next request). Below is the updated selectTest method. For issue 4 I will try the kvision-pace module. For issue 2, I think I will need to split my redux reducers and have the tabulator view subscribe to part of the store state and not the whole state.
fun selectTest(testId: Int, testCaseId: String, showButton: Button) = launch {
val state = uatStore.getState()
var test: Test?
val list = state.testCollection.toMutableList()
test = list.firstOrNull { it.id == testId && it.testCaseId == testCaseId }
if (test == null) {
test = projectService.getTestById(testId, testCaseId)
// list.add(test)
// uatStore.dispatch(UatAction.SetTestCollection(list))
}
showButton.enablePopover(
PopoverOptions(
title = "${test.title}",
content = "${test.description}",
rich = true,
triggers = listOf(Trigger.MANUAL)
)
)
showButton.showPopover()
}
``
from kvision.
Related Issues (20)
- request url of KVService is using related path instead of absolute path HOT 2
- Tabulator vertical scrolling issue HOT 7
- Initial value for DateTime control HOT 1
- Request - support for crossorigin attribute in Image (and others) HOT 1
- Ability to intercept image load errors HOT 2
- Component lifecycle HOT 6
- StackPanel seems to not indexing components properly HOT 4
- Wrong module in kvision.gitbook.io. HOT 1
- trying to generate .pot files HOT 12
- overrides of `SimplePanel.AddAll` call refresh outside of a `singleRender` wrapper. HOT 1
- Allow KVService to have arguments with GET HOT 6
- Allow modifying response headers for Spring Boot and Micronaut apps HOT 1
- remove id parameter on get requests HOT 1
- Can't get data from Tabulator.RowComponent HOT 2
- Expandable/collapsible fieldset or panel HOT 2
- How to attch files using the Richtext Component HOT 7
- duplicated different word in kvision docs HOT 1
- did you consider to integrate kvision with ktor client? HOT 5
- can't make tabulator selectable with kvision v7.4.4 HOT 2
- My tabulator not selecting data HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kvision.