Panel ToggleButton Passthrough #3211
Unanswered
escape-llc
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cannot figure out how to provide the correct
pt
object to customize theToggleButton
properties in thePanel
component.I wish to modify the
ToggleButton
offIcon
andonIcon
properties, to display alternate glyphs than the default plus/minus glyphs.I have tried variations on this to no avail:
:pt="{pcToggleButton: { props: { offIcon:'pi pi-angle-up', onIcon: 'pi pi-angle-down'}}}"
:toggleButtonProps="{offIcon: 'pi pi-angle-up', onIcon: 'pi pi-angle-down'}"
It is totally unclear when to insert a
root
or other intermediate property; the documentation for using passthrough needs more detailed examples, or each component needs some specific examples for configuring each PT component.I have also tried the
ptOptions
andtoggleButtonProps
props to no avail.Can someone please demonstrate what is the correct object for this, using
pt
,ptOptions
ortoggleButtonProps
?Beta Was this translation helpful? Give feedback.
All reactions