Help needed - writing my first custom Default List Item

So my new idea is to discard the accordion list and to just set a switch to ON / OFF to decide if the additional settings / infos should be visible - see this topic.