[composer] Add api method for toggling visibility of composer items