I have a dropdown with text as more details and up on clicking it will show some info below that line . What i am trying to achieve is up on expanding the ‘more detail’ text should change to ‘less detail’
this is my code
[ Html.text "More detail"
, Html.i [ Attributes.class "material-icons" ]
[ if expanded then
Html.text "keyboard_arrow_up"
else
Html.text "keyboard_arrow_down"
]
kindly help