forked from 0x2620/oxjs
add an optional function to textlist columns that maps values to sort values
This commit is contained in:
parent
5915acd72c
commit
a3c18e57b0
6 changed files with 34 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ Ox.MapMarker = function(options) {
|
|||
}
|
||||
|
||||
function getMarkerImage(options, callback) {
|
||||
// unused
|
||||
// fixme: unused
|
||||
options = Ox.extend({
|
||||
background: [255, 0, 0],
|
||||
editing: false,
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue