Fragment
Samples
import org.hexworks.cobalt.events.api.Subscription
import org.hexworks.zircon.api.Components
import org.hexworks.zircon.api.component.Fragment
import org.hexworks.zircon.api.uievent.ComponentEventType
fun main() {
//sampleStart
class ConfirmButton : Fragment {
override val root = Components.button()
.withText("Confirm")
.build()
fun onConfirm(fn: () -> Unit): Subscription {
return root.processComponentEvents(ComponentEventType.ACTIVATED) {
fn()
}
}
}
//sampleEnd
}
Functions
Properties
Inheritors
ModalFragment
Link copied to clipboard
HorizontalTabBar
Link copied to clipboard
Selector
Link copied to clipboard
Tab
Link copied to clipboard
VerticalTabBar
Link copied to clipboard
ConfirmButton
Link copied to clipboard
Sources
(source)
Link copied to clipboard