commonMain.io.nacular.doodle.theme.native.NativeFileSelectorStyler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of themes Show documentation
Show all versions of themes Show documentation
A pure Kotlin, UI framework for the Web and Desktop
The newest version!
package io.nacular.doodle.theme.native
import io.nacular.doodle.controls.files.FileSelector
import io.nacular.doodle.core.Behavior
/**
* Allows full control over how [FileSelector]s are styled while still retaining some native behaviors. The given behavior is delegated
* to for all visual styling, but things like link traversal will be handled natively.
*/
public interface NativeFileSelectorStyler {
/**
* Wraps [behavior] with other native behavior for [FileSelector]s.
*
* @param fileSelector to apply [behavior] to
* @param behavior to be "wrapped"
* @return a new Behavior for the selector
*/
public operator fun invoke(fileSelector: FileSelector, behavior: Behavior): Behavior
}