All Questions
Tagged with checkbox lightning-aura-components
21 questions
0
votes
1
answer
35
views
Maintaining a flagged checkbox in a component
I have a component that contains a list of associated selection lists, consisting of 1 level, 2 level, 3 level. The second and third levels have a list of checkboxes, which the user can flag. This ...
0
votes
1
answer
700
views
How to maintain state of selected records after search in Lightning datatable
I'm not able to maintain the checkbox state, when lightning:datatable records change after searching records in the datatable.
I have a searchbar above the Lightning datatable and records with ...
0
votes
1
answer
954
views
How to display lightning checkboxGroup in 2 column without disturbing other slds form elements?
What CSS would be required to make the items in a lightning:checkboxGroup display horizontally in two or three columns?
i have tried this Css
.THIS .slds-form-element__control {
display: grid !...
1
vote
1
answer
2k
views
How to change the colour of <lightning:input type="toggle" >?
I would like to change the standard color of the toggle in lightning input when it is checked or not. How can I perform it?
.THIS .slds-checkbox_faux
{
background-color: #ec54d4 !important;
}
In ...
0
votes
1
answer
689
views
lightning:input field not passing value?
I've built a form in my lightning component and it seems to be working perfectly, except for a single lightning:select field not passing thru. If I check the box in the form, it doesn't reflect that ...
2
votes
1
answer
800
views
Content Overflow with <lightning:checkboxGroup>
I want my lightning:checkboxGroup to overflow into two columns in my fixed width and height box. I believe the best way to do this is to edit the css but I am not sure if this is possible with the ...
0
votes
1
answer
2k
views
<aura:iteration> and input or <lightning:checkboxGroup>
I have a custom object Topics__c that I want list out like so:
The text is the topic name which is a String data type. So I have to add in a checkbox along side the Name field. I have been doing some ...
0
votes
1
answer
6k
views
How to get unchecked row/checkbox value in lightning:datatable
I am using <lightning:datatable onrowselection="{!c.onSelectContact}" /> for displaying contacts and to check and uncheck checkbox fields.
Then in the component controller i use event.getParam(...
4
votes
2
answers
17k
views
lightning checkbox is not working
I have two checkboxes in a lightning component, when we click on the first checkbox it marks true to the other checkbox, it works well only with the UI tags but doesn't work when I convert it to ...
0
votes
2
answers
530
views
How to fix checkbox in lightning:recordForm?
I have a problem with checkboxes when using lightning:recordForm.
My code:
<lightning:recordForm objectApiName="Opportunity" recordId="{!v.recordId}"
mode="view" ...
1
vote
2
answers
5k
views
CSS required to make lightning:checkboxGroup items display horizontally
What CSS would be required to make the items in a lightning:checkboxGroup display horizontally rather than the default of vertical?
0
votes
2
answers
4k
views
Lightning CheckboxGroup
How to clear the Lightning checkbox group? I tried to clear it using the empty array. But the value gets set to the attribute however, on the UI the checkbox is still checked.
Option 1 -
...
0
votes
1
answer
307
views
is it possible to replace ui:inputCheckbox with an image trough css
Is it possible to replace ui:inputCheckbox with an image trough css. I have searched but could not find any answer. I currently have a checkbox which passes 2 values trough text and name to my ...
1
vote
4
answers
27k
views
How to display a checkbox field using ligntning:datatable?
I'm trying to display a check box field using lightning:datatable component.
Here is the component markup.
<aura:component>
<aura:attribute name="invoices" type="Invoice__c[]"/>
<aura:...
2
votes
1
answer
2k
views
Dynamic checkbox only eveluates to true
I have a dynamic checkbox generated trough an iterator.I want to be able to get the true and false values from the current state of the checkbox.
When ik check or uncheck my checkbox is always ...
1
vote
1
answer
612
views
Checkboxes not working with javascript function
I am trying to make a dynamic filter on accounts. What I want to achieve is to show only the records where the checkboxes are true.
The issue I have is that my function is not working based on a ...
0
votes
2
answers
862
views
Get array value checkbox
I want get all value of checkbox is checked. I trying but it not working.
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:...
1
vote
1
answer
633
views
lightning checkboxgroup get last value
I want get last value in checkboxgroup. I try using cmp.find("mygroup").get("v.value") but it get all value.
0
votes
1
answer
640
views
How do I change the background of a checked ui:inputcheckbox?
I am trying to set the background of my checked checkbox. This is the code:
<div class="slds-form-element__row">
<div class="slds-form-element">
<label class="slds-...
4
votes
3
answers
12k
views
ui:inputCheckbox how to allign with the checkbox itself
i tried to add a checkbox using ui:inputCheckbox and i wasn't able to align the checkbox with the label
this is the code:
<ui:inputCheckbox aura:id="leadsCheckBox" label="leads" click="{!c....
0
votes
2
answers
10k
views
Get the values of checkboxes (in a lightning component)
I have a data table in my lightning component, and for each element of this table I have a checkbox. I'd like that when I make my selection of few element in the table, when I click on a button to ...