Perseus
Preparing search index...
@khanacademy/perseus
<internal>
UniversalWidgetProps
Type Alias UniversalWidgetProps<TUserInput, TrackingExtraArgs>
The props passed to every widget, regardless of its
type
.
type
UniversalWidgetProps
<
TUserInput
=
Empty
,
TrackingExtraArgs
=
Empty
>
=
{
alignment
:
string
|
null
|
undefined
;
apiOptions
:
APIOptionsWithDefaults
;
containerSizeClass
:
SizeClass
;
findWidgets
:
(
criterion
:
FilterCriterion
)
=>
ReadonlyArray
<
Widget
>
;
handleUserInput
:
(
newUserInput
:
TUserInput
,
cb
?:
()
=>
void
,
silent
?:
boolean
,
)
=>
void
;
keypadElement
?:
any
;
linterContext
:
LinterContextProps
;
onBlur
:
(
blurPath
:
FocusPath
)
=>
void
;
onFocus
:
(
blurPath
:
FocusPath
)
=>
void
;
problemNum
:
number
|
null
|
undefined
;
reviewMode
:
boolean
;
showSolutions
?:
ShowSolutions
;
static
:
boolean
|
null
|
undefined
;
trackInteraction
:
(
extraData
?:
TrackingExtraArgs
)
=>
void
;
userInput
:
TUserInput
;
widgetId
:
string
;
widgetIndex
:
number
;
}
Type Parameters
TUserInput
=
Empty
TrackingExtraArgs
=
Empty
Index
Properties
alignment
api
Options
container
Size
Class
find
Widgets
handle
User
Input
keypad
Element?
linter
Context
on
Blur
on
Focus
problem
Num
review
Mode
show
Solutions?
static
track
Interaction
user
Input
widget
Id
widget
Index
Properties
alignment
alignment
:
string
|
null
|
undefined
api
Options
apiOptions
:
APIOptionsWithDefaults
container
Size
Class
containerSizeClass
:
SizeClass
find
Widgets
findWidgets
:
(
criterion
:
FilterCriterion
)
=>
ReadonlyArray
<
Widget
>
handle
User
Input
handleUserInput
:
(
newUserInput
:
TUserInput
,
cb
?:
()
=>
void
,
silent
?:
boolean
,
)
=>
void
Optional
keypad
Element
keypadElement
?:
any
linter
Context
linterContext
:
LinterContextProps
on
Blur
onBlur
:
(
blurPath
:
FocusPath
)
=>
void
on
Focus
onFocus
:
(
blurPath
:
FocusPath
)
=>
void
problem
Num
problemNum
:
number
|
null
|
undefined
review
Mode
reviewMode
:
boolean
Optional
show
Solutions
showSolutions
?:
ShowSolutions
static
static
:
boolean
|
null
|
undefined
track
Interaction
trackInteraction
:
(
extraData
?:
TrackingExtraArgs
)
=>
void
user
Input
userInput
:
TUserInput
widget
Id
widgetId
:
string
widget
Index
widgetIndex
:
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
alignment
api
Options
container
Size
Class
find
Widgets
handle
User
Input
keypad
Element
linter
Context
on
Blur
on
Focus
problem
Num
review
Mode
show
Solutions
static
track
Interaction
user
Input
widget
Id
widget
Index
Perseus
Loading...
The props passed to every widget, regardless of its
type.