Nhảy tới nội dung

Text

Lưu ý sau khi phiên bản KeystoneJS 5 chuyển sang chế độ duy trì để ra mắt phiên bản mới hơn. Chúng tôi đã dựa trên mã nguồn cũ này để phát triển một phiên bản khác với một số tính năng theo hướng microservices.

A basic but versatile text field of arbitrary length.

Usage

const { Text } = require("@ocop/fields");

ocop.createList("Product", {
fields: {
description: { type: Text },
},
});

Config

OptionTypeDefaultDescription
isRequiredBooleanfalseDoes this field require a value?
isUniqueBooleanfalseAdds a unique index that allows only unique values to be stored
isMultilineBooleanfalseMakes the field render as a textarea