Use case
Use case
The ExpansibleController has only expand and collapse methods. If the user wants to change the expandable state, the following code has to be written:
if (controller.isExpanded) {
controller.collapse();
} else {
controller.expand();
}
Proposal
Add ExpansibleController.toggle method to allow the user to change the expansion state with only one call.
Use case
Use case
The
ExpansibleControllerhas onlyexpandandcollapsemethods. If the user wants to change the expandable state, the following code has to be written:Proposal
Add
ExpansibleController.togglemethod to allow the user to change the expansion state with only one call.controller.toggle();