8

I tried creating something with a ui:block in a lightning component.

I get this message in the dev console: Failed to save undefined: No COMPONENT named block found: Source

<aura:component implements="force:appHostable">
  <ui:block>
    <h4>test</h4>
  </ui:block>
</aura:component>

According to the aura:docs, ui:block is GA. Same result with some other GA UI components like ui:listView.

3
  • 1
    I have had the same problem with this as well as other apparently "supported" components. If you navigate to https://<YOURINSTANCE>.lightning.force.com/auradocs/reference.app you'll find out that these components even though are documented in the official docs, are not present in the reference app. That means that these components not available to your org for some reason. I'm struggling to find an answer to this too. This is part of my question that I posted earlier - salesforce.stackexchange.com/questions/81562/… Commented Jun 29, 2015 at 5:06
  • I encountered this issue as well. Is there another way to execute a lightning event on the click of a div then? The aura:click doesn't seem to work for me either. Commented Jun 29, 2015 at 13:13
  • <div onclick="{!c.handleClick}">...</div>
    – Skip Sauls
    Commented Jun 29, 2015 at 18:13

1 Answer 1

3

So, apparently not all aura components are released yet to lightning, but they're documented and are part of the open source framework as per this answer. This means that it's a waiting game. In the meantime we'll need to find other alternatives with HTML/CSS/JavaScript in order to replicate the functionality of these components inside the lightning components. If you were to build your own app outside lightning, using the open source framework, then you can use these components.

2
  • 1
    Lightning Components is based on Aura, but it's not simply Aura loaded from a static resource. The reference app and the Lightning Component docs are the primary references to consult.
    – Skip Sauls
    Commented Jun 29, 2015 at 18:15
  • 1
    The above notwithstanding, many of the components might not be live in Lightning yet, but are pretty simple and you could implement them yourself. The source to ui:block is located here: github.com/forcedotcom/aura/tree/master/aura-components/src/…. There's no serverside call or even javascript, so this one you can just make in your own org and use as needed. Commented Jul 26, 2015 at 15:56

You must log in to answer this question.

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