Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var currentName = 'foobar';
- var dialog = new Dialog({
- title: 'Rename Layer',
- fields: {'Name': currentName}, // fields shown within the dialog. infers it's a "text" input autom.
- triggers: ['OK', 'Cancel'],
- onOK: function(fields) { // note the field access
- console.log(fields.name); // got a new name hopefully :)
- }
- });
Add Comment
Please, Sign In to add comment