onBeforeCopy

fires before a card is copied

void onBeforeCopy(number|string id);
idnumber|stringthe ID of the original card

Example

$$("kanban").attachEvent("onBeforeCopy",function(id){
 
    // returning false will block copying for the card
    var ocard = this.getItem(id);
    if (ocard.type === "single")
        return false;
});

Related samples

See also
Back to top