You may need to define what your definition of "element id" is. If you're using Modules and creating UI elements, those ID's are created automatically. If you're using the API, you'll want to look at the Modules API examples. There are examples of how to create a module, class and UI elements.