> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stratumn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit view

When view is use inside a data editor table, cells can be configured with various **editor options** to determine how their content can be edited. Below is a detailed breakdown of the available editor types and their configurations.

***

## Text Widget

The **Text** widget offers multiple editor types for handling textual input:

<Tabs>
  <Tab title="Editor">
    <ParamField path="type" type="input">
      A simple text input field.
    </ParamField>

    <ParamField path="type" type="number">
      A simple number input field.
    </ParamField>

    <ParamField path="type" type="select">
      A dropdown input allowing users to choose one value from a predefined list.
    </ParamField>

    <ParamField path="type" type="comment">
      A multi-line text field designed for entering long text content. For comments, notes, or other extended text input.
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json Simple usage theme={null}
    "view": {
        "editor": {
            "type": "comment"
        },
        "path": "document",
        "type": "text"
    }
    ```
  </Tab>

  <Tab title="Screenshot">
    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/ui/widgets/text.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=589ed97db1b7b553a4e437877b4f2a8d" width="1076" height="228" data-path="images/configuration/ui/widgets/text.png" />
    </Frame>
  </Tab>
</Tabs>

## File Compact

The **File Compact** widget allows you to manage file uploads directly from a table cell using the `uploadFile` editor.

<Tabs>
  <Tab title="Editor">
    <ParamField path="type" type="uploadFile">
      Opens the file explorer to upload a file. Only one file can be uploaded per cell.
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json Simple usage theme={null}
    "view": {
        "editor": {
            "type": "uploadFile"
        },
        "path": "document",
        "type": "fileCompact"
    }
    ```

    <Note>
      After a file is uploaded, the available actions are:

      * **Replace**: Select a new file to replace the existing one.
      * **Download**: Download the uploaded file.
      * **Delete**: Remove the uploaded file.

      Once the upload is confirmed, only the **download** action will remain available for the user.
    </Note>
  </Tab>

  <Tab title="Screenshot">
    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/table/fileCompact-empty.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=dd08abb296a3e6fbf5041f9271412f88" width="252" height="92" data-path="images/configuration/table/fileCompact-empty.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/table/fileCompact-edit.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=129f74b3bb3b36cfda3cb8b77dec6aa9" width="250" height="53" data-path="images/configuration/table/fileCompact-edit.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/table/fileCompact-dl.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=e237afd48d0099c5f20eaf001a0d2c35" width="252" height="51" data-path="images/configuration/table/fileCompact-dl.png" />
    </Frame>
  </Tab>
</Tabs>

## CommentFeed

The **CommentFeed** widget allows users to add, edit, and remove comments within a table cell.

<Tabs>
  <Tab title="Editor">
    <ParamField path="type" type="comment">
      A rich text editor for managing comments.
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json Simple usage theme={null}
    "view": {
        "editor": {
            "type": "comment"
        },
        "path": "document",
        "type": "text"
    }
    ```
  </Tab>

  <Tab title="Screenshot">
    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/table/commentFeed-empty.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=1e236d793495f84518fc0a856a158726" width="1002" height="1102" data-path="images/configuration/table/commentFeed-empty.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/stratumn/_7ghGbILOYM4ffi0/images/configuration/table/commentFeed-edit.png?fit=max&auto=format&n=_7ghGbILOYM4ffi0&q=85&s=20db8086d0e06ac8c6e24abcb5c3c0e7" width="984" height="1654" data-path="images/configuration/table/commentFeed-edit.png" />
    </Frame>
  </Tab>
</Tabs>
