Lowcoder Documentation
  • Lowcoder overview
    • The "Hello World" walk
  • 🆕Setup and run
    • Cloud & Private Cloud
    • Self-hosting
      • Google Cloud Platform
      • Easypanel
      • Heroku
      • Raspberry Pi
      • Access local database or API
      • Update MongoDB Versions
      • Lowcoder Version Update
      • Traefik loadbalancer
      • SMTP Server
      • Migration from Openblocks
    • Security
    • Lowcoder Enterprise Edition
      • Ordering the Enterprise Edition
      • Installing Enterprise Edition
      • Enterprise Edition Features
        • Environments
          • Setting up an Environment
          • Environment Details
        • Audit Logs
        • App Usage Analytics
        • Branding & Whitelabel
  • 🏨Workspaces & Teamwork
    • Workspaces
      • Multi-Workspace Mode
      • Single Workspace Mode
    • Members and Groups
    • Permissions for Resources
    • OAuth
      • KeyCloak
      • Google
      • GitHub
      • Generic OAuth Provider
    • Query library
    • Lowcoder Marketplace
  • ✨Build Applications
    • Create a new App
      • App(s) Navigation
      • Modules
      • Version and Release Management
    • App Editor
      • Query & Editing Roundtrips
      • Bulk Editing
      • Keyboard shortcuts
      • Data selection & Javascript
      • Layers
      • Visual Components
        • Common Component Settings
        • Messages / Toast
        • Dashboard & Reporting
          • Table
          • Charts and graphs
            • Bar Chart
            • Line Chart
            • Pie Chart
            • Scatter Chart
            • CandleStick Chart
            • Funnel Chart
            • Gauge Chart
            • Graph Chart
            • Heatmap Chart
            • Radar Chart
            • Sankey Chart
            • Suburst Chart
            • Theme River Chart
            • Tree Chart
            • Treemap Chart
            • Mermaid Chart
          • Google Maps
          • Timeline
        • Layout & Navigation
          • List View
          • Drawer
          • Modal
          • Navigation
          • Cascader
          • Tree / Tree Select
          • Link
          • Floating Button
          • Text
          • Step Control
          • Page Layout
          • Content Card
          • Tabbed Container
        • Data Collection & Forms
          • Form
          • Input Field Types
          • JSON Schema Form
          • Dropdown
          • Select & MultiSelect components
          • Rating
          • Checkbox
          • Switch
          • Toggle Button
          • Radio
        • Meeting & Collaboration
          • Avatar & Avatar Group
          • Comment
        • Project Management
          • Kanban
          • Gantt Chart
        • Calendar & Scheduling
          • Calendar
          • Date & Date Range
          • Time & Time Range
        • Document & File Management
          • File upload
          • Transfer
        • Item & Signature Handling
          • QRCode
          • Scanner
        • Multimedia & Animation
          • Image
          • Lottie Animation
          • Image Carousel
          • Video
          • Audio
          • Image Editor
          • Color Picker
        • Integration & Extension
        • Legacy & Deprecated
      • Option lists
      • Date handling
      • Use Markdown
    • App Interaction
      • Event handlers
    • Themes & Styling
      • Design an efficient and user-friendly form
      • Customize Styles
      • Component Styling Possibilities
    • Video Calls in Lowcoder
  • 🚀Connect your Data
    • Data source basics
      • Configure IP allowlists
    • Data sources in Lowcoder
      • APIs as Datasource
        • REST API
        • GraphQL
        • Google Sheets
      • SQL Databases
        • MySQL
        • MariaDB
        • Supabase
          • Supabase PostgreSQL
          • Supabase Assets API
          • Supabase RealTime
          • Supabase OAuth
        • PostgreSQL
        • Microsoft SQL Server
        • Oracle
      • NoSQL Databases
        • MongoDB
        • CouchDB
        • DynamoDB
      • InMemory Databases
        • Redis
      • File Storages
        • S3 File Storage
      • BigData & OLAP
        • Big Query
        • Snowflake
        • ClickHouse
        • Elasticsearch
      • Websocket Datasource
    • Query basics
      • Bind Query Data to Components
      • Query library
  • 🪄Workflows
    • n8n Integration
  • 💫Business Logic in Apps
    • Write JavaScript
      • JavaScript query
      • Temporary state
      • Transformers
      • Data responder
      • Built-in JS functions
  • 🙌Publish Apps
    • Share an App
    • Publish an App
    • Embed an App
      • Embed App in HTML Pages
      • Embed App in WordPress Pages
      • Embed Apps in React
      • Embed Apps in NEXT.JS
      • Native embed SDK
        • Build the SDK from Source
  • 🔥Lowcoder Extension
    • Opensource Contribution
      • Develop UI components for Apps
      • Develop Data Source Plugins
    • Use third-party libraries in Apps
      • Day.js Date handling
      • Import your own JavaScript Library
    • Custom component
    • Lowcoder Open REST API
  • Lowcoder for Enterprise
    • Custom branding
Powered by GitBook
LogoLogo

More to try...

  • Lowcoder Website
  • Free Cloud Platform
  • Github
  • Discord

© Lowcoder Software LTD

On this page
  • 💬 Comment Component in Lowcoder
  • 🔧 Key Features
  • 🛠 Configuration Options
  • ⚙️ Integration Tips
  • Component Playground
  • Component Auto-Docs
  • 📌 Use Cases

Was this helpful?

  1. Build Applications
  2. App Editor
  3. Visual Components
  4. Meeting & Collaboration

Comment

PreviousAvatar & Avatar GroupNextProject Management

Last updated 1 month ago

Was this helpful?

💬 Comment Component in Lowcoder

The Comment component in Lowcoder facilitates user engagement by enabling the display and management of user-generated comments. It is ideal for applications requiring feedback, discussions, or threaded conversations.

🔧 Key Features

  • User Information Display: Showcases user avatars, names, and timestamps alongside comments.

  • Nested Replies: Supports threaded discussions by allowing replies to comments.

  • Interactive Actions: Includes options for actions like replying, editing, or deleting comments.

  • Dynamic Data Binding: Integrates seamlessly with data sources for real-time updates.

  • Customisable Styling: Offers flexibility in appearance to match application themes.

🛠 Configuration Options

  • Data Source Integration: Bind comments to APIs or databases for dynamic content.

  • Avatar and User Details: Customize the display of user information associated with each comment.

  • Action Handlers: Define behaviors for actions like reply, edit, or delete.

  • Styling Options: Adjust layout, colors, and fonts to align with your application's design.

⚙️ Integration Tips

  • Data Binding: Utilize Lowcoder's data binding syntax ({{ }}) to connect comment data to dynamic sources.

  • Event Handling: Implement event handlers to perform actions when users interact with comments, such as submitting a reply or deleting a comment.

  • Combining with Other Components: Integrate the Comment component with forms or user profiles to enhance user interaction.

Component Playground

On Component Playground, you can interact with the Comment component and explore it's Properties, Events and Methods. Play with different Styling properties to see the effect on the Comment component.

Component Auto-Docs

In the Auto-Docs of Comment component, we have shown how to use different properties of the Comment component. It also includes the Styling properties of the Comment component.

Properties of the Comment component

These properties are accessible in {{ }} notations, as well as in JavaScript Queries.

Property Name
Type
Description

commentList

Array

Returns an Array of Objects containing the list of Comments along with User details of the Comment component

deletedItem

Array

Returns an Array of Objects containing the most latest deleted comment of the Comment component

hidden

Boolean

Returns True or False based on whether the Comment component is hidden or not

mentionName

String

Returns a String containing the name of the most recently tagged Person of the Rating component

submittedItem

Object

Returns an Object containing the most recent Comment along with User details of the Comment component

Events

Events give you the ability to trigger further actions (with Event-Handlers).

Event Name
Description

Click

Triggers, when a User clicks on the User name or Avatar on the Comment component

Submit

Triggers, when a User submits a new Comment

Delete

Triggers, when a User deletes a Comment

Mention

Triggers, when a User mentions anyone in the Comment

Methods

You have the capability to engage with components via their respective methods, which can be accessed by their designated names within any segment where JavaScript is utilized. Additionally, these components can be activated through the 'Control Component' action, which is triggered in response to specific events.

setCommentList() :

comment1.setCommentList() method sets the Comment component's CommentList property, which gets shown in the Comment component.

comment1.setCommentList([
    {
        "user": {
            "name": "John Doe",
            "avatar": "https://ui-avatars.com/api/?name=John+Doe"
        },
        "value": "Has anyone tried using Lowcode for our new internal tool yet?",
        "createdAt": "2024-09-20T10:15:41.658Z"
    },
    {
        "user": {
            "name": "Jane Smith",
            "avatar": "https://ui-avatars.com/api/?name=Jane+Smith"
        },
        "value": "Yes, I’ve been experimenting with it for automating our workflows. It's super quick to set up.",
        "createdAt": "2024-09-20T10:17:12.658Z"
    }
]);

clearCommentList() :

comment1.clearCommentList() clears the Comment component's CommentList property and empties the Comments from the Comment component.

comment1.clearCommentList();

resetCommentList() :

comment1.resetCommentList() method resets the Comment component's CommentList property to the default CommentList of the Comment component.

comment1.resetCommentList();

setDeletedItem() :

comment1.setDeletedItem method sets the Comment component's DeletedItem property.

comment1.setDeletedItem([
    {
        "user": {
            "name": "Angel Maria",
            "displayName": "Angel",
            "avatar": "https://ui-avatars.com/api/?name=Michael+Brown"
        },
        "value": "That sounds interesting! What kind of automation are you building?",
        "createdAt": "2024-09-20T10:18:45.658Z"
    }
]);

clearDeletedItem() :

comment1.clearDeletedItem() clears the Comment component's DeletedItem property and empties the DeletedItem property from the Comment component.

comment1.clearDeletedItem();

resetDeletedItem() :

comment1.resetDeletedItem() method resets the Comment component's DeletedItem property to the default DeletedItem property of the Comment component.

comment1.resetDeletedItem();

setSubmitedItem() :

comment1.setSubmitedItem() method sets the Comment component's SubmitedItem property.

comment1.setSubmitedItem({
    "user": {
        "name": "Tom Cruise",
        "email": "tom@gmail.com"
    },
    "value": "This is a Test comment",
    "createdAt": "2025-05-13T19:48:35+05:00"
});

clearSubmitedItem() :

comment1.clearSubmitedItem() clears the Comment component's SubmitedItem property and empties the SubmitedItem property from the Comment component.

comment1.clearSubmitedItem();

resetSubmitedItem() :

comment1.resetSubmitedItem method resets the Comment component's SubmitedItem property to the default SubmitedItem property of the Comment component.

comment1.resetSubmitedItem();

📌 Use Cases

  • Feedback Sections: Collect user feedback on products or services.

  • Discussion Forums: Facilitate conversations among users on various topics.

  • Support Threads: Enable users to ask questions and receive answers in a threaded format.

  • Content Comments: Allow users to comment on articles, blogs, or media content.

✨
Lowcoder | rapid App & VideoMeeting builder for everyone.
Lowcoder | rapid App & VideoMeeting builder for everyone.