@blockly/field-grid-dropdown
Advanced tools
Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "@blockly/field-grid-dropdown", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "A Blockly dropdown field with grid layout.", | ||
@@ -65,3 +65,3 @@ "scripts": { | ||
], | ||
"gitHead": "154d0741565f76f9e4862a14dc76ac3fc55bb3a7" | ||
"gitHead": "bb7a405d573b0f748db9828321500eb176013890" | ||
} |
@@ -23,7 +23,7 @@ /** | ||
* options. | ||
* @param {Function=} opt_validator A function that is called to validate | ||
* @param {Function=} validator A function that is called to validate | ||
* changes to the field's value. Takes in a language-neutral dropdown | ||
* option & returns a validated language-neutral dropdown option, or null | ||
* to abort the change. | ||
* @param {Object=} opt_config A map of options used to configure the field. | ||
* @param {Object=} config A map of options used to configure the field. | ||
* See the [field creation documentation]{@link https://developers.google.com/blockly/guides/create-custom-blocks/fields/built-in-fields/dropdown#creation} | ||
@@ -35,4 +35,4 @@ * for a list of properties this parameter supports. | ||
*/ | ||
constructor(menuGenerator, opt_validator, opt_config) { | ||
super(menuGenerator, opt_validator, opt_config); | ||
constructor(menuGenerator, validator = undefined, config = undefined) { | ||
super(menuGenerator, validator, config); | ||
@@ -46,4 +46,4 @@ /** | ||
this.columns_ = 3; | ||
if (opt_config && opt_config['columns']) { | ||
this.setColumnsInternal_(opt_config['columns']); | ||
if (config && config['columns']) { | ||
this.setColumnsInternal_(config['columns']); | ||
} | ||
@@ -91,3 +91,3 @@ } | ||
* Create a dropdown menu under the text. | ||
* @param {Event=} opt_e Optional mouse event that triggered the field to | ||
* @param {Event=} e Optional mouse event that triggered the field to | ||
* open, or undefined if triggered programmatically. | ||
@@ -97,4 +97,4 @@ * @protected | ||
*/ | ||
showEditor_(opt_e) { | ||
super.showEditor_(opt_e); | ||
showEditor_(e = undefined) { | ||
super.showEditor_(e); | ||
@@ -101,0 +101,0 @@ // Grid dropdown is always colored. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36781