Clicking one button firing event on another button

I have requirement where when I click on the button, the code in the background adds one time to the array. This ion-fab-list should populate with number of buttons as the array. This is only possible by the mimicking the event firing on the fab button. How do I do this?