Skip to main content

How to close Drawer in “Cancel” button click(button placed in Drawer table)?

When I click cancel current drawer closed automatically with cancel action?


My Page code:








































































































var params = argumentse0],

$ = skuid.$;

var field = argumentse0];

var value = argumentse1];

console.log(field.mode);

if (field.mode === ‘edit’) {


var disabilityOptions = ;


skuid.$.each(skuid.model.getModel(‘Status’).getRows(), function(i,row) {

console.log(‘—row----’+row);

disabilityOptions.push({

value : row.Status_Value__c,

label : row.Status_Value__c

});

});

console.log(‘—disabilityOptions----’+disabilityOptions);


var disabilitySelect = skuid.ui.renderers.PICKLIST.edit({

entries : disabilityOptions,

required : false,

value : value

}).change(function() {

//alert(skuid.$(this).val());

field.model.updateRow(field.row,‘AccountNumber’,skuid.$(this).val());

});

field.element.append(disabilitySelect);

} else {

console.log(‘-----nonedit------’+field.mode);


skuid.ui.fieldRenderers.TEXTofield.mode](field,value);

}




Siva,

you may find this and this helpful.


Reply