Toolbox
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Toolbox
form
/
com.michaelflisar.toolbox.form3
/
FormItem
Form
Item
sealed
interface
FormItem
:
IFormItem
Inheritors
Info
Picker
Input
Checkbox
Dropdown
DropdownIndex
MultiDropdown
MultiDropdownIndex
Members
Types
Checkbox
Link copied to clipboard
data
class
Checkbox
(
val
label
:
String
,
val
checked
:
MutableState
<
Boolean
>
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Dropdown
Link copied to clipboard
data
class
Dropdown
<
T
>
(
val
label
:
String
,
val
items
:
List
<
T
>
,
val
mapper
:
@
Composable
(
T
)
->
String
,
val
selected
:
MutableState
<
T
>
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Dropdown
Index
Link copied to clipboard
data
class
DropdownIndex
(
val
label
:
String
,
val
items
:
List
<
String
>
,
val
selectedIndex
:
MutableState
<
Int
>
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Info
Link copied to clipboard
data
class
Info
(
val
label
:
String
,
val
value
:
String
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Input
Link copied to clipboard
data
class
Input
(
val
label
:
String
,
val
value
:
MutableState
<
String
>
,
val
minLines
:
Int
=
1
,
val
maxLines
:
Int
=
1
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Multi
Dropdown
Link copied to clipboard
data
class
MultiDropdown
(
val
label
:
String
,
val
items
:
List
<
String
>
,
val
selected
:
MutableState
<
List
<
String
>
>
,
val
sortSelectionByItems
:
Boolean
=
true
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Multi
Dropdown
Index
Link copied to clipboard
data
class
MultiDropdownIndex
(
val
label
:
String
,
val
items
:
List
<
String
>
,
val
selectedIndices
:
MutableState
<
List
<
Int
>
>
,
val
sortSelectionByItems
:
Boolean
=
true
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
)
:
FormItem
Picker
Link copied to clipboard
data
class
Picker
(
val
label
:
String
,
val
value
:
String
,
val
icon
:
IconComposable
,
val
subLabel
:
String
?
=
null
,
val
help
:
FormHelp
?
=
null
,
val
visible
:
Boolean
=
true
,
val
enabled
:
Boolean
=
true
,
val
onClick
:
(
)
->
Unit
)
:
FormItem
Properties
enabled
Link copied to clipboard
open
val
enabled
:
Boolean
help
Link copied to clipboard
abstract
val
help
:
FormHelp
?
label
Link copied to clipboard
abstract
val
label
:
String
sub
Label
Link copied to clipboard
abstract
val
subLabel
:
String
?
visible
Link copied to clipboard
open
val
visible
:
Boolean
Functions
Content
Link copied to clipboard
@
Composable
abstract
fun
Content
(
config
:
FormConfig
,
parentIsEnabled
:
Boolean
)