1
0
Fork 0
forked from 0x2620/oxjs

add an optional function to textlist columns that maps values to sort values

This commit is contained in:
rolux 2011-05-22 15:14:42 +02:00
commit a3c18e57b0
6 changed files with 34 additions and 16 deletions

View file

@ -55,6 +55,9 @@ Ox.ListMap = function(options, self) {
id: 'geoname',
removable: false,
operator: '+',
sort: function(v) {
return v.split(', ').reverse().join(', ')
},
title: 'Geoname',
visible: true,
width: 192

View file

@ -83,7 +83,7 @@ Ox.MapMarker = function(options) {
}
function getMarkerImage(options, callback) {
// unused
// fixme: unused
options = Ox.extend({
background: [255, 0, 0],
editing: false,

View file

@ -27,9 +27,12 @@ Ox.MapMarkerImage = (function() {
options.type, options.mode, options.size, options.color.join(',')
].join(';');
Ox.print('HELLO??')
if (!cache[index]) {
var color = options.type == 'place' ?
Ox.merge(Ox.clone(options.color), [0.5]) : [0, 0, 0, 0],
Ox.merge(Ox.clone(options.color), [0.5]) :
options.type == 'result' ? [128, 128, 128, 0.5] : [0, 0, 0, 0],
border = options.mode == 'normal' ? [0, 0, 0] :
options.mode == 'selected' ? [255, 255, 255] : [128, 128, 255],
c = Ox.canvas(options.size, options.size),