How to create a dynamic menu

@tatiang
I saw this post:

Couldn’t it be changed by inserting three buttons in the rows?