You need to sign in to do that
Don't have an account?
TrailheadBeginner
Hello All..How to achieve this visual force page scenario in Lightning.Please help me to resolve this issue.
function selectAllCheckboxes(obj,receivedInputID)
{
var inputCheckBox = document.getElementsByTagName("input"); //we are taking tage name here
for(var i=0; i<inputCheckBox.length; i++)
{
if(inputCheckBox[i].id.indexOf(receivedInputID)!=-1)
{
inputCheckBox[i].checked = obj.checked;
}
}
}
==============================================================
<apex:column >
<apex:facet name="header">
<apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>
</apex:facet>
<apex:inputCheckbox value="{!a.isSelected}" id="inputId"/>
</apex:column>
===============================================================
{
var inputCheckBox = document.getElementsByTagName("input"); //we are taking tage name here
for(var i=0; i<inputCheckBox.length; i++)
{
if(inputCheckBox[i].id.indexOf(receivedInputID)!=-1)
{
inputCheckBox[i].checked = obj.checked;
}
}
}
==============================================================
<apex:column >
<apex:facet name="header">
<apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>
</apex:facet>
<apex:inputCheckbox value="{!a.isSelected}" id="inputId"/>
</apex:column>
===============================================================
are you want this functionality in lightning component ?