nocobase/docs/tr-TR/development/server/collections/field-extension.md
altaytahsin ad4929e48b
Turkish language created for Docs. Belgeler için türkçe dil desteği (#1071)
* Turkish language created for Docs. Belgeler için türkçe dil desteği oluşturuldu.

* Turkish docs fix
2022-12-23 09:42:44 +08:00

1.2 KiB

How to extend fields

The composition of a Collection Field in NocoBase consists of

Extend Field Type

For example, to extend the password type field ``type: 'password'`

export class MyPlugin extends Plugin {
  beforeLoad() {
    this.db.registerFieldTypes({
      password: PasswordField
    });
  }
}

export class PasswordField extends Field {
  get dataType() {
    return DataTypes.STRING;
  }
}

Extend Field Component

Related extension documentation can be found at

Extend Field Interface