| Event | Description |
|---|---|
| selectadd | Called when a selectable is added to the list of selectables. |
| selectmove | Called when the lasso mouse moves over the selectable |
| selectover | Called when the lasso moves onto a selectable |
| selectout | Called when the lasso moves out of a selectable |
| selected | Calls when the selectable is released on selected elements |
TasksController = MVC.Controller.extend('tasks',{
'# lassostart' : function(){}, //allows lassing in element w/ id = tasks
selectadd : function(params){
params.cache_position();
},
selectover : function(params){
params.element.style.backgroundColor = "red"
},
selectout : function(params){
params.element.style.backgroundColor = ""
},
selected : function(params){
params.element.style.backgroundColor = "green"
}
}) include.plugins('controller/lasso')matches "(.*?)\\s?(selectover|selected|selectout|selectadd|selectmove)$"
init(action_name, callback, className, element, action, f, controller) -> undefined
{} -
{} -
{} -
{} -
{Object} -
{Object} -
{Object} -