component.setName(name)Set the name of the Component Object.
To set the name along with other settings, see Set component settings.
name : string - Then name you wish to give your componentPromise<null>
A promise that resolves to null once the name has been set.