1.3.0 • Published 5 years ago
rt-json-editor v1.3.0
A draggable toggle-switch component for React.
Demo
Installation
npm install rt-json-editor
Usage
module.exports = {
array: {
label: 'Array',
type: 'array',
value: ['1', '2', '3'],
title: 'array',
required: true
},
kind: {
value: 'Deployment'
},
metadata: {
editable: false,
type: 'object',
schema: {
name: { type: 'string', required: true },
labels: {
type: 'object',
schema: {
app: {
type: 'string'
}
}
}
}
},
spec: {
type: 'object',
schema: {
replicas: {
type: 'number',
required: true
},
template: {
type: 'object',
schema: {
metadata: {
type: 'object',
schema: {
labels: {
type: 'object',
schema: {
app: {
type: 'string'
},
tier: {
type: 'string'
}
}
}
}
},
spec: {
type: 'object',
schema: {
containers: {
type: 'object',
schema: {
name: {
type: 'string'
},
image: {
type: 'string',
required: true
},
ports: {
type: 'array',
schema: {
containerPort: {
type: 'number',
required: true
}
}
}
}
}
}
}
}
}
}
}
};
License
MIT
1.3.0
5 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.15
6 years ago
1.1.14
6 years ago
1.1.13
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
0.1.0
6 years ago