[Api] Use same constructor signature like dojo widgets