Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sensenet/control-mapper

Package Overview
Dependencies
Maintainers
6
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sensenet/control-mapper

Control mapping utility for sensenet

latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
6
Created
Source

@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)

Keywords

sensenet

FAQs

Package last updated on 26 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts