Comments (5)
Great issue and a change I welcome much as well.
I will work on this sometime within the next two weeks when I can find time.
from sheets-compose-dialogs.
Here's an example:
val selectedTimeInSeconds = remember { mutableStateOf<Long>(240) }
val state = rememberUseCaseState(visible = true, onCloseRequest = { closeSelection() })
DurationDialog(
state = state,
selection = DurationSelection(
withButtonView = false,
) { newTimeInSeconds ->
selectedTimeInSeconds.value = newTimeInSeconds
},
config = DurationConfig(
timeFormat = DurationFormat.HH_MM_SS,
currentTime = selectedTimeInSeconds.value,
),
)
val coroutineScope = rememberCoroutineScope()
coroutineScope.launch {
delay(5000)
state.invokePositiveAction()
Log.d("DurationSample1", "DurationSample1: ${selectedTimeInSeconds.value}")
}
from sheets-compose-dialogs.
Which event would trigger the selection then if the button view is not wanted for the views, via a separate invocation to trigger it via the use-case state?
from sheets-compose-dialogs.
Which event would trigger the selection then if the button view is not wanted for the views, via a separate invocation to trigger it via the use-case state?
Yes, a separate invocation via the use-case state would work.
from sheets-compose-dialogs.
@maxkeppeler onPositiveClick is still a required option even though there can be no buttons now.
InfoView(
useCaseState = rememberUseCaseState(),
selection = InfoSelection(withButtonView = false)
)
No value passed for parameter 'onPositiveClick'
from sheets-compose-dialogs.
Related Issues (20)
- How to change color text and button in ClockDialog? HOT 1
- Allow OptionSheet icons to be in colour HOT 6
- (DateTime) "getLocalizedPattern" is incorrect for Chinese locale HOT 1
- How do I change the text used in calendar HOT 8
- [Feature] Provide Bottom Sheets HOT 2
- [Question] Min version SDK. HOT 5
- [Question] Is it possible to setup a listener for date changes? HOT 3
- How to set color of dialog(dark mode)? HOT 1
- [Feature] Allow setting minimum and maximum date/times for DateTimeDialog HOT 3
- [Bug] Settings "12:00 AM" on the time picker resets the time to 12:00 PM instead HOT 8
- How can I get the selection value of AM or PM to put it in a string? HOT 1
- Support for Compose Multiplatform HOT 1
- Feature: Numeric input HOT 1
- Month text font is too large HOT 1
- Conflict between sheets-compose-dialogs and sheets HOT 4
- Set default selection date. For ex- age restricion for 18 year+
- Language of calendar don't change when changing app language HOT 1
- How change colors inside this dialog? HOT 1
- Variable for text on screen HOT 1
- Why deplay 600ms when click success? HOT 9
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 sheets-compose-dialogs.