-
public final class PollCreationHeaderKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPollCreationHeader(Modifier modifier, Function0<Unit> onBackPressed, Boolean enabledCreation, Function0<Unit> onPollCreateClicked, String onPollCreateClickedLabel, Function1<RowScope, Unit> leadingContent, Function1<RowScope, Unit> centerContent, Function1<RowScope, Unit> trailingContent)Poll's creation header (toolbar) Composable that consist of several components. -
-
Method Detail
-
PollCreationHeader
@Composable() final static Unit PollCreationHeader(Modifier modifier, Function0<Unit> onBackPressed, Boolean enabledCreation, Function0<Unit> onPollCreateClicked, String onPollCreateClickedLabel, Function1<RowScope, Unit> leadingContent, Function1<RowScope, Unit> centerContent, Function1<RowScope, Unit> trailingContent)
Poll's creation header (toolbar) Composable that consist of several components.
- Parameters:
modifier- The Modifier for styling.onBackPressed- A lambda that will be executed if users click the back button on the default leadingContent.enabledCreation- Represents if user can click the creation button or not.onPollCreateClicked- A lambda that will be executed if users click the poll creation button.onPollCreateClickedLabel- Semantic / accessibility label for onPollCreateClicked.leadingContent- Customizable composable function that represents the leading content of a poll creation item, usually holding a back action button.centerContent- Customizable composable function that represents the center content of a poll creation item, usually holding information about the title.trailingContent- Customizable composable function that represents the trailing content of a poll creation item, usually holding the creation action button.
-
-
-
-