Component Blueprints
List Builder
- HTML/CSS:Dev Ready
- Layout:Desktop Only
Sections
The List Builder is a quick, visual and efficient ‘shopping cart’ approach to adding multiple items to a parent object.
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
0 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product |
About List Builder#
The List builder relies heavily on utility classes to piece together the layout so please pay close attention to the markup and classes.
Base#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
0 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large slds-list-builder">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
States#
Items Selected#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
- Analytics
1 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
Items Disabled#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
0 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
Items Default Selected#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
0 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product | |
Analytics | ANTLY | 5000.00 | Analytics Product |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
Examples#
Two Column with Hidden Header#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
- Option A
- Option B
2 Item(s) Selected
Sort by: Name | Sort by: Product Code | Sort by: List Price | Sort by: Product Family | |
---|---|---|---|---|
Analytics | ANTLY | 5000.00 | Analytics Product |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
Filtered Results#
Add products
Pricebook: Salesforce Products
- Option A
- Option B
- Option C
- Option D
0 Item(s) Selected
Product Name | |
---|---|
Analytics | |
Analytics | |
Analytics | |
Analytics | |
Analytics | |
Analytics | |
Analytics | |
Analytics |
<div class="demo-only demo-only_viewport" style="height:640px">
<section role="dialog" tabindex="-1" aria-modal="true" aria-labelledby="id-of-modalheader-h1" class="slds-modal slds-fade-in-open slds-modal_large">
<div class="slds-modal__container">
<button class="slds-button slds-button_icon slds-modal__close slds-button_icon-inverse">
Overview of CSS Classes#
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
Selector | .slds-list-builder |
---|---|
Summary | |
Support | dev-ready |
Restrict | div, section |
Variant | True |
List Builder Release Notes
2.16.0
Changed
- Removed the usage of the deprecated combobox. The List Builder now uses the current combobox.
- Updated combobox to ARIA 1.2 compliance.
2.13.0
Changed
- The assistive text for the listbox of pills has been moved out of the individual pills to remove repetition for users with screenreaders.
2.11.0
Changed
- List Builder now uses the new
.slds-checkbox-button
instead of the deprecated.slds-checkbox_add-button
2.7.0
Added
- Added examples for list builders with disabled items and items selected by default.
- Added an example of a list builder with a headless table
Changed
- List Builder now requires
aria-multiselectable="true"
applied to thetable
element. - Each row now requires
aria-selected
to be set tofalse
on every row that is not selected