1.3.0 • Published 4 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
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
0.1.0
5 years ago