If you want to figure out what code you need to write in order to build a particular model component you can use the handy reverse engineering functionality:
https://docs.mendix.com/apidocs-mxsdk/mxsdk/generating-code-from-the-model
If you build the page in Mendix that you are looking to build, you can then connect the model sdk to it and reverse engineer it. This will give you the necessary code to rebuild that page. This is extremely useful for learning how to code with the Model SDK.
Regards
Simon