Tài liệu tham khảo API NocoBase
@nocobase/auth
@nocobase/cache
@nocobase/app
- TZ
- APP_ENV
- APP_KEY
- APP_PORT
- API_BASE_PATH
- API_BASE_URL
- CLUSTER_MODE
- PLUGIN_PACKAGE_PREFIX
- DB_DIALECT
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USER
- DB_PASSWORD
- DB_TABLE_PREFIX
- DB_UNDERSCORED
- DB_LOGGING
- LOGGER_TRANSPORT
- LOGGER_BASE_PATH
- LOGGER_LEVEL
- LOGGER_MAX_FILES
- LOGGER_MAX_SIZE
- LOGGER_FORMAT
- CACHE_DEFAULT_STORE
- CACHE_MEMORY_MAX
- CACHE_REDIS_URL
- TELEMETRY_ENABLED
- TELEMETRY_METRIC_READER
- TELEMETRY_TRACE_PROCESSOR
@nocobase/cli
@nocobase/client
@nocobase/database
- Tổng quan
- Constructor
- Thành viên của instance
optionscontextnamedbfilterTargetKeyisThroughmodelrepository- Phương thức cấu hình field
getField()setField()setFields()removeField()resetFields()hasField()findField()forEachField()- Phương thức cấu hình index
addIndex()removeIndex()- Phương thức cấu hình bảng
remove()- Phương thức thao tác cơ sở dữ liệu
sync()existsInDb()removeFromDb()
- Tổng quan
- Constructor
- Thành viên của instance
nametypedataTypeoptionscontext- Phương thức cấu hình
on()off()bind()unbind()get()merge()remove()- Phương thức cơ sở dữ liệu
removeFromDb()existsInDb()- Danh sách kiểu field có sẵn
'boolean''integer''bigInt''double''real''decimal''string''text''password''date''time''array''json''jsonb''uuid''uid''formula''radio''sort''virtual''belongsTo''hasOne''hasMany''belongsToMany'
- Toán tử chung
$eq$ne$is$not$col$in$notIn$empty$notEmpty- Toán tử logic
$and$or- Toán tử cho field kiểu boolean
$isFalsy$isTruly- Toán tử cho field kiểu số
$gt$gte$lt$lte$between$notBetween- Toán tử cho field kiểu chuỗi
$includes$notIncludes$startsWith$notStatsWith$endsWith$notEndsWith$like$notLike$iLike$notILike$regexp$notRegexp$iRegexp$notIRegexp- Toán tử cho field kiểu ngày
$dateOn$dateNotOn$dateBefore$dateNotBefore$dateAfter$dateNotAfter- Toán tử cho field kiểu mảng
$match$notMatch$anyOf$noneOf$arrayEmpty$arrayNotEmpty- Toán tử cho field kiểu quan hệ
$exists$notExists
@nocobase/data-source-manager
@nocobase/flow-engine
- Thuộc tính thường dùng
- Phương thức thường dùng
- Liên quan đến request
- Liên quan đến popup
- Kiểm soát thực thi Flow
- Action và Event
- Quyền
- Khác
- Cách dùng điển hình trong phát triển Plugin
- Hiển thị thông báo trong click handler
- Mở popup tạo bản ghi
- Lấy dữ liệu hàng hiện tại (thao tác cấp bản ghi)
- Thao tác dữ liệu qua resource
- Liên kết liên quan
- MultiRecordResource
- Thao tác dữ liệu
- Phân trang
- Hàng đã chọn
- Ví dụ: Sử dụng trong CollectionBlockModel
- Ví dụ: Gọi CRUD trong nút thao tác
- Ví dụ: Tham khảo nhanh thao tác CRUD
- SingleRecordResource
- Thao tác dữ liệu
- Thuộc tính chính
- Ví dụ: Tình huống form chi tiết
- Ví dụ: Tạo mới và chỉnh sửa bản ghi
- Phương thức chung
- Lọc
- Kiểm soát field
- Cấu hình resource
- Metadata và trạng thái
- Sự kiện
- Cú pháp Filter
- So sánh MultiRecordResource và SingleRecordResource
- Liên kết liên quan

