logologo
Get Started
Guide
Development
Plugins
API
English
简体中文
Get Started
Guide
Development
Plugins
API
English
简体中文
logologo
Overview

Blocks

Overview

Data Blocks

Table
Form
Details
List
Grid Card
Chart

Filter Blocks

Form

Other Blocks

Action Panel
Iframe
Reference block
Markdown
JS Block

Block Settings

Data Scope
Layout
Block Linkage Rules
Field Linkage Rules
Sorting Rules
Block Deletion
Block Title

Fields

Overview

Generic Settings

Table Column
Detail Form Item
Filter Form Item
Form Item

Specific Settings

Date
File Manager
Sub-form
Select
Picker
Sub-table
Sub-detail
Title
JS Field
JS Item
JS Column

Field Settings

Default Value
Field Label
Show Label
Field Tooltip
Data Scope
Field Component
Number Format
Pattern
Required
Title Field
Validation Rules
Association Field

Actions

Overview

Action Settings

Edit Button
Double Check
Assign Values
Bind Workflow
Edit Popup
Action Linkage Rules

Action Types

Add New
View
Delete
Edit
Import
Import Pro
Export
Export Pro
Export Attachments
Filter
Link
Pop-up
Refresh
Submit
Trigger Workflow
Update Record
Bulk Update
JS Action
Action Permissions

Advanced

Linkage Rules
Event Flow
Variables
RunJS
Previous PageVariables

#Online Write & Run JS

In NocoBase, RunJS provides a lightweight extension method suitable for scenarios of quick experimentation and temporary logic processing. Without creating plugins or modifying source code, you can personalize interfaces or interactions through JavaScript.

Through it, you can directly input JS code in the UI builder to achieve:

  • Custom rendering content (fields, blocks, columns, items, etc.)
  • Custom interaction logic (button clicks, event linkage)
  • Dynamic behavior combined with contextual data

#Supported Scenarios

#JS Block

Customize block rendering through JS, giving you complete control over the block's structure and styles.
Suitable for displaying custom components, statistical charts, third-party content, and other highly flexible scenarios.

20250916105031

Documentation: JS Block

#JS Action

Customize the click logic of action buttons through JS, allowing you to execute any frontend or API request operations.
For example: dynamically calculate values, submit custom data, trigger pop-ups, etc.

20250916105123

Documentation: JS Action

#JS Field

Customize field rendering logic through JS. You can dynamically display different styles, content, or states based on field values.

20250916105354

Documentation: JS Field

#JS Item

Render independent items through JS without binding to specific fields. Commonly used for displaying custom information blocks.

20250916104848

Documentation: JS Item

#JS Table Column

Customize table column rendering through JS.
Can implement complex cell display logic, such as progress bars, status labels, etc.

20250916105443

Documentation: JS Table Column

#Linkage Rules

Control linkage logic between fields in forms or pages through JS.
For example: when one field changes, dynamically modify another field's value or visibility.

20251029114532

Documentation: Linkage Rules

#Event Flow

Customize event flow trigger conditions and execution logic through JS to build more complex frontend interaction chains.

Documentation: Event Flow