0.2.10 • Published 12 months ago
leaflet-formbuilder v0.2.10
# Leaflet.FormBuilder
Helpers to build forms synchronized with Leaflet objects.
Usage
var tilelayerFields = [
['options.tilelayer.name', {handler: 'BlurInput', placeholder: 'display name'}],
['options.tilelayer.url_template', {handler: 'BlurInput', helpText: 'Supported scheme: http://{s}.domain.com/{z}/{x}/{y}.png', placeholder: 'url'}],
['options.tilelayer.maxZoom', {handler: 'BlurIntInput', placeholder: 'max zoom'}],
['options.tilelayer.minZoom', {handler: 'BlurIntInput', placeholder: 'min zoom'}],
['options.tilelayer.attribution', {handler: 'BlurInput', placeholder: 'attribution'}],
['options.tilelayer.tms', {handler: 'CheckBox', helpText: 'TMS format'}]
];
var builder = new L.FormBuilder(myObject, tilelayerFields, {
callback: myCallback,
callbackContext: this
});
myContainer.appendChild(builder.build());
See more examples of usage:
0.2.10
12 months ago
0.2.9
2 years ago
0.2.8
2 years ago
0.2.7
2 years ago
0.2.6
2 years ago
0.2.5
2 years ago
0.2.4
2 years ago
0.2.3
9 years ago
0.2.2
9 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.6
11 years ago
0.0.5
11 years ago
0.0.4
11 years ago
0.0.3
11 years ago
0.0.2
11 years ago
0.0.1
11 years ago