Skip to content

Edit inline in table #639

Answered by fa7ad
hiimnhan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Our documentation was out of date, we've updated it now. You should be able to see the correct documentation at https://cloudscape.design/components/table/?tabId=api now.

To implement inline editing in a table you can use our demo and its corresponding source code as a starting point.

The relevant part of the code would look something like this:

const columnDefinitions = [
  {
    id: "variable",
    header: "Variable name",
    minWidth: 176,
    cell: (item) => {
      return item.name;
    },
    editConfig: {
      ariaLabel: "Name",
      editIconAriaLabel: "editable",
      errorIconAriaLabel: "Name Error",
      editingCell: (item, { currentValue, setValue }) => {
        return (

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by just-boris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants