Developing Lightning App and do not want to use the standard Skuid component initially on the page because it takes up entire page. We are presenting user with a series of icons in the app and then onclick it performs whatever action.
In the case where we want to open a Skuid page with the onclick, using the URL of the Skuid page in the Controller will work but seems like there is supposed to be a better way? I’m not a Java or really even a Lightning Developer but seems like can tackle this.
/* Lightning Component */ <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
<figure>
<img src="image.jpg; onclick="{!c.handleClickSkuidPage}"/>
<figcaption>Skuid Page</figcaption>
</figure>
</aura:component>
/* Controller */
({
handleClickSkuidPage: function (component, event, helper) {
var navEvt = $A.get("e.force:navigateToURL").setParams({
"url": "UglyHardCodedSkuidPageURL"
}).fire();
}
})