Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created July 3, 2018 13:48
Show Gist options
  • Save choudharymanish8585/f9f582e7aed46163f7d22ee75a4cf042 to your computer and use it in GitHub Desktop.
Save choudharymanish8585/f9f582e7aed46163f7d22ee75a4cf042 to your computer and use it in GitHub Desktop.
<aura:component controller="ListViewController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >
<aura:attribute name="objName" type="String" />
<!--<aura:attribute name="objListView" type="String[]" />-->
<aura:attribute name="viewName" type="String" />
<div class="slds-box slds-theme_default">
<div class="slds-box">
<lightning:input aura:id="inputName" type="text" label="Enter Object Name:" required="true" />
<lightning:button variant="brand" label="Show List View" name="List View" onclick="{!c.showData}"/>
</div>
<br/><br/>
<div class="slds-theme_default slds-form-element slds-hide" aura:id="div1">
<div class="slds-text-heading_medium">
<strong>Select List View Name From Drop Down List:</strong>
</div>
<div class="slds-select_container">
<ui:inputSelect aura:id="selectvalues" class="slds-select" change="{!c.onListViewChange}"/>
</div>
<div class="slds-box slds-theme_default">
<aura:If isTrue="{!v.viewName != null}">
{!v.body}
</aura:If>
</div>
</div>
</div>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment