Skip to main content
Commonmark migration
Source Link

I am able to dynamically create "ui:button" using $A.createComponent as shown in: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

 

However, I am not able to do the same for "button". Can somebody help me why is this happening and also how to render "button".

I am able to dynamically create "ui:button" using $A.createComponent as shown in: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

 

However, I am not able to do the same for "button". Can somebody help me why is this happening and also how to render "button".

I am able to dynamically create "ui:button" using $A.createComponent as shown in: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

However, I am not able to do the same for "button". Can somebody help me why is this happening and also how to render "button".

Source Link
Sarang
  • 2.7k
  • 8
  • 55
  • 102

How to create "button" tag dynamically using $A.createComponent

I am able to dynamically create "ui:button" using $A.createComponent as shown in: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

However, I am not able to do the same for "button". Can somebody help me why is this happening and also how to render "button".