4

I was trying to use the lightning:dataTable in my Winter '18 preview enabled sandbox with Version 41.0(shown in snapshot)

enter image description here

But unfortunately it fails to identify the base lightning component(lightning:dataTable) in my component markup. Is there something i need to do before i start using it in my component?

4
  • What do you mean by fails to identify? It doesn't compile? Sep 19, 2017 at 9:33
  • @MartinLezer it compiles, but when i add the component to my layout in app builder, it throws an error.
    – Anee
    Sep 19, 2017 at 9:39
  • 2
    Yes I just tested it too. My guess is that as long as the new version is not officially launched, they block this component rendering. Also, there is no documentation yet and there must be some required attributes. Sep 19, 2017 at 9:45
  • @MartinLezer Thanks Martin. As you pointed out, there's no much documentation available either.
    – Anee
    Sep 19, 2017 at 9:47

1 Answer 1

1

This works fine for me in Winter 18 pre-release org (gs0 instance).

<lightning:datatable columns="{!v.columns}" data="{!v.data}" keyField="Id"/>

Renders in App Builder and when on record detail page in Lightning Experience.

Make sure you are spelling the component with lowercase "datatable" perhaps? Doubly verify the data you are binding to the component matches expected format per https://developer.salesforce.com/docs/atlas.en-us.210.0.lightning.meta/lightning/aura_compref_lightning_datatable.htm

1
  • Wow they finally released the documentation of the new components ! Nice ! Sep 25, 2017 at 7:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .