deleteMarkedTimespan

removes marking/blocking set by the addMarkedTimespan() method

void deleteMarkedTimespan( [string | object config] );
configstring | objectthe timespan's id or the timespan's configuration properties

Example

var spanID = scheduler.addMarkedTimespan({  
    days:  [0,1], 
    zones: "fullday"              
});
scheduler.deleteMarkedTimespan(spanID);

Related samples

Details

Available from version 3.5.

The method requires the limit plugin to be activated.

The method has 3 overloads:

  1. deleteMarkedTimespan() - takes no parameters and removes all blocking/marking.
  2. deleteMarkedTimespan(id) - takes the timespan's id.
  3. deleteMarkedTimespan(config) - takes certain configuration properties.
var spanID = scheduler.addMarkedTimespan({  
    days:  [3,4,5], 
    zones: [100,400]          
});
 
// removes marking from each Sunday
scheduler.deleteMarkedTimespan({ 
    days:  0,
});
 
//removes marking for the time period from 250 till 350 minute of each Friday
//each Friday now will have 2 marking blocks: 100-250, 350-400
scheduler.deleteMarkedTimespan({ 
    days:  5,
    zones: [250,350]
});
 
// removes marking for the item with id=3 in the Units view
scheduler.deleteMarkedTimespan({ 
    days:  5,
    zones: [250,350],
    sections:{ unit:3 }        
});
See also
Back to top