Clay
Skip to ContentClayClay by Liferay
  • Get Started
    • Introduction
    • What is Clay
    • Importing the JS Component
    • Using JS Components with Metal.js
    • Web Components
  • Foundations
    • Grid
    • Typography
  • Lexicon Core Components
    • Alerts
    • Badges
    • Buttons
    • Cards
    • Charts
      • Advanced Examples
        • Axis Label
        • Axis Range
        • Data Color
        • Gridlines
        • Predictive forecasting
        • Regions
        • X Axis Tick Formatting
      • Basic Examples
        • Bar Chart
        • Bubble Chart
        • Combination Chart
        • Donut Chart
        • Gauge Chart
        • Geomap Chart
        • Line Chart
        • Pie Chart
        • Scatter Chart
        • Spline Chart
        • Step Chart
    • Dataset Display
    • Dropdown Menu
    • Forms
      • Checkbox, Radio, and Toggle
      • Forms
      • Forms Hierarchy
      • Forms Navigation
      • Multi Step Form
      • Multi Step Form Simplified
      • Selectors
      • Text Input
      • Text Input Group
      • Text Input Localizable
      • Text Input Variations
    • Icons
    • Labels
    • Link
    • List
    • Loading Indicator
    • Modals
    • Navigation
      • Breadcrumbs
      • Navigation Bar
      • Vertical Navigation
    • Pagination
    • Popovers and Tooltips
    • Progress Bars
    • Sidebar
      • Info Panel
    • Stickers
    • Table
      • Inline Edit Table
      • Table
    • Tabs
    • Toolbars
      • Management Toolbar
  • CSS Framework
    • SCSS
    • Class Helpers
    • Satellite Components
      • Alerts
      • Badges
      • Button Group
      • Cards
      • Dropdown Menu
      • Forms
        • Form Elements
        • Form Elements (Input Groups)
        • Form Elements (Validation)
      • Images (Aspect Ratios)
      • Images and Thumbnails
      • Labels
      • Links
      • List Groups
      • Modals
      • Nav
      • Navigation
        • Header
      • Paginations
      • Panels
      • Popovers and Tooltips
      • Progress Bars
      • Stickers
      • Tables
      • Tbar (Toolbar)
      • Timelines
      • Toggle Switch
    • Page Examples
      • Card View Template
      • Document Upload
      • List View Template
      • Table View Template
      • Users and Organizations
  • News

Inline Edit Table

Description

A table variation that lets users modify certain values of the entry without going to the detail page.

Check the Lexicon Inline Edit Table Pattern for a more in-depth look at the motivations and proper usage of this component.

Inline Edit Table

Title Author Modified Date
Web Content 342122-322-abcdefg
Marge Peggie Margaret Meg Maggie Miller 35 Seconds Ago
  • Edit
  • Recycle Bin
Web Content C
Arnold Geen 15 Minutes Ago
  • Edit
  • Recycle Bin
20 Minutes Ago
Web Content E
Michael Dellen 5 Minutes Ago
  • Edit
  • Recycle Bin
<div class="table-responsive">
	<table class="table table-autofit table-list table-nowrap">
		<thead>
			<tr>
				<th>
					<span class="text-truncate-inline">
						<span class="text-truncate" title=""></span>
					</span>
				</th>
				<th class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="Title">Title</span>
					</span>
				</th>
				<th class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="Author">Author</span>
					</span>
				</th>
				<th class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="Modified Date">Modified Date</span>
					</span>
				</th>
				<th></th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>
					<div class="custom-control custom-checkbox">
						<label>
							<input class="custom-control-input" type="checkbox"/>
							<span class="custom-control-label"></span>
						</label>
					</div>
				</td>
				<td class="table-cell-expand">
					<div class="table-list-title">
						<a class="text-truncate-inline" href="#1">
							<span class="text-truncate" title="Web Content 342122-322-abcdefg">Web Content 342122-322-abcdefg</span>
						</a>
					</div>
				</td>
				<td class="table-cell-expand">
					<a class="table-list-link text-truncate-inline" href="#1">
						<span class="text-truncate" title="Marge Peggie Margaret Meg Maggie Miller">Marge Peggie Margaret Meg Maggie Miller</span>
					</a>
				</td>
				<td class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="35 Seconds Ago">35 Seconds Ago</span>
					</span>
				</td>
				<td>
					<button class="btn btn-secondary btn-sm" type="button">Edit</button>
				</td>
				<td>
					<div class="dropdown dropdown-action">
						<a aria-expanded="false" aria-haspopup="true" class="component-action dropdown-toggle" data-toggle="dropdown" href="#1" id="dropdownAction1" role="button">
							<svg class="lexicon-icon lexicon-icon-ellipsis-v" focusable="false" role="presentation">
								<use href="/images/icons/icons.svg#ellipsis-v" />
							</svg>
						</a>
						<ul aria-labelledby="" class="dropdown-menu dropdown-menu-right">
							<li><a class="dropdown-item" href="#1" role="button">Edit</a></li>
							<li><a class="dropdown-item" href="#1" role="button">Recycle Bin</a></li>
						</ul>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="custom-control custom-checkbox">
						<label>
							<input class="custom-control-input" type="checkbox"/>
							<span class="custom-control-label"></span>
						</label>
					</div>
				</td>
				<td class="table-cell-expand">
					<div class="table-list-title">
						<a class="text-truncate-inline" href="#1">
							<span class="text-truncate" title="Web Content C">Web Content C</span>
						</a>
					</div>
				</td>
				<td class="table-cell-expand">
					<a class="table-list-link text-truncate-inline" href="#1">
						<span class="text-truncate" title="Arnold Geen">Arnold Geen</span>
					</a>
				</td>
				<td class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="15 Minutes Ago">15 Minutes Ago</span>
					</span>
				</td>
				<td>
					<button class="btn btn-secondary btn-sm" type="button">Edit</button>
				</td>
				<td>
					<div class="dropdown dropdown-action">
						<a aria-expanded="false" aria-haspopup="true" class="component-action dropdown-toggle" data-toggle="dropdown" href="#1" id="dropdownAction1" role="button">
							<svg class="lexicon-icon lexicon-icon-ellipsis-v" focusable="false" role="presentation">
								<use href="/images/icons/icons.svg#ellipsis-v" />
							</svg>
						</a>
						<ul aria-labelledby="" class="dropdown-menu dropdown-menu-right">
							<li><a class="dropdown-item" href="#1" role="button">Edit</a></li>
							<li><a class="dropdown-item" href="#1" role="button">Recycle Bin</a></li>
						</ul>
					</div>
				</td>
			</tr>
			<tr>
				<td>
					<div class="custom-control custom-checkbox">
						<label>
							<input class="custom-control-input" type="checkbox"/>
							<span class="custom-control-label"></span>
						</label>
					</div>
				</td>
				<td class="table-cell-expand">
					<input class="form-control form-control-sm" type="text" value="Web Content B"/>
				</td>
				<td class="table-cell-expand">
					<input class="form-control form-control-sm" type="text" value="Matthew Richards"/>
				</td>
				<td class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="20 Minutes Ago">20 Minutes Ago</span>
					</span>
				</td>
				<td colspan="2">
					<button class="btn btn-primary btn-sm" type="button">Save</button>
					<button class="btn btn-secondary btn-sm" type="button">Cancel</button>
				</td>
			</tr>
			<tr>
				<td>
					<div class="custom-control custom-checkbox">
						<label>
							<input class="custom-control-input" type="checkbox"/>
							<span class="custom-control-label"></span>
						</label>
					</div>
				</td>
				<td class="table-cell-expand">
					<div class="table-list-title">
						<a class="text-truncate-inline" href="#1">
							<span class="text-truncate" title="Web Content E">Web Content E</span>
						</a>
					</div>
				</td>
				<td class="table-cell-expand">
					<a class="table-list-link text-truncate-inline" href="#1">
						<span class="text-truncate" title="Michael Dellen">Michael Dellen</span>
					</a>
				</td>
				<td class="table-cell-expand">
					<span class="text-truncate-inline">
						<span class="text-truncate" title="5 Minutes Ago">5 Minutes Ago</span>
					</span>
				</td>
				<td>
					<button class="btn btn-secondary btn-sm" type="button">Edit</button>
				</td>
				<td>
					<div class="dropdown dropdown-action">
						<a aria-expanded="false" aria-haspopup="true" class="component-action dropdown-toggle" data-toggle="dropdown" href="#1" id="dropdownAction1" role="button">
							<svg class="lexicon-icon lexicon-icon-ellipsis-v" focusable="false" role="presentation">
								<use href="/images/icons/icons.svg#ellipsis-v" />
							</svg>
						</a>
						<ul aria-labelledby="" class="dropdown-menu dropdown-menu-right">
							<li><a class="dropdown-item" href="#1" role="button">Edit</a></li>
							<li><a class="dropdown-item" href="#1" role="button">Recycle Bin</a></li>
						</ul>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>

Except as otherwise noted, the content of this site is licensed under CC BY-SA 4.0 license.