npm

Need private packages and team management tools?Check out npm Orgs. »

@sensenet/control-mapper

2.0.1 • Public • Published

@sensenet/control-mapper

This NPM package contains a control mapping tool for sensenet. This can be used for specifying relations between sensenet schemas and specified UI controls at content and field level and can be used for automatized form generation.

NPM version NPM downloads License: GPL v2

Install

# Yarn 
yarn add @sensenet/control-mapper
 
# NPM 
npm install @sensenet/control-mapper

Usage

import { Repository } from '@sensenet/client-core'
import { ControlMapper } from '@sensenet/control-mapper'
 
const repository = new Repository({
  /** repository settings */
})
 
const mapper = new ControlMapper(repository, ExampleDefaultControl, ExampleDefaultFieldControl)
  .setupFieldSettingDefault(NumberFieldSetting, setting => MyNumberFieldImplementation)
  .setupFieldSettingDefault(PasswordFieldSetting, setting => MyPasswordFieldImplementation)

install

npm i @sensenet/control-mapper

Downloadsweekly downloads

56

version

2.0.1

license

GPL-2.0

homepage

sensenet.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability