-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
not able to call validators in custom field
Blockly.Blocks['display_led_matrix'] = {
init: function () {
var valid = function(){
console.log("this valid ");
// console.log("valid call"+v);
// console.log("test009= "+this.getFieldValue('mcolor1_'));
};
this.appendDummyInput()
.appendField("show LEDS");
this.appendDummyInput()
.appendField("Select color")
//.appendField(new Blockly.FieldColour('#000000',this.select_function()), 'mcolor1_')
// Warninig: This name (mcolor_) must not be changed!
.appendField(new Blockly.CustomFieldColour('#fff000',valid), 'mcolor_');
Metadata
Metadata
Assignees
Labels
No labels