tooltip

sets a popup message next to the multitext when the cursor points to it

string|boolean|function|object tooltip;

Example

// tooltip as a boolean
{ 
    view:"multitext",
    value:"Susan Way, Dirk Gently",
    tooltip:true 
};
 
// tooltip as a string
{ 
    view:"multitext",
    value:"Susan Way, Dirk Gently", 
    tooltip:"Guests: #value#" 
};
 
// tooltip as a function
{
    view:"multitext",
    value:"Susan Way, Dirk Gently, Clark Kent", 
    tooltip:function(obj){
        return "Guests: " + $$(obj.id).getValueHere(); 
    }
};
 
// tooltip as a configuration object
{ 
    view:"multitext",
    value:"Susan Way, Dirk Gently", 
    tooltip:{
        dx:10,dy:20,
        template:function(obj){
            return "Guests: " + obj.value;
        }
    }
};

Related samples

Details

If you define the tooltip as a function, it receives the configuration object of the multiselect.

If you define the tooltip as an object, you can configure the tooltip and define its template as a string or a function.

See also
Back to top