Passes an optClass object to the component. It is automatically called, when the component is run inside the template.
optClass