Creating tables in custom macro

Hi guys

Recently I followed the “Creating a new Confluence macro” tutorial (https://developer.atlassian.com/server/confluence/creating-a-new-confluence-macro/) and had some questions.

As you see under the tutorial overview, you have a small table which is the result. How can I create a table which looks like a Confluence table? Now it does not look like a table we can create in Confluence at all…

Does someone has documentation/information on how to use parameters from a macro property panel (like here: https://developer.atlassian.com/server/confluence/extending-the-macro-property-panel/)? And on which types of parameters can be used?

Sorry if this is all make sense to you, but I did not find anything at all which answer my questions in the documentation.

Thanks for your time and answers.