g1 issueshttps://code.gramener.com/cto/g1/-/issues2018-06-20T11:12:14Zhttps://code.gramener.com/cto/g1/-/issues/64[Mapviewer] Feature request - Color scale Linear is not working2018-06-20T11:12:14ZAnvesh Dasari[Mapviewer] Feature request - Color scale Linear is not workingEX:
```javascript
fill: {
metric: 'age', // same as function(d) { return d.age }
scale: 'linear',
domain: [0, 50, 100],
range: ['red', 'yellow', 'green'],
}
```
Getting default color(black) on the map.EX:
```javascript
fill: {
metric: 'age', // same as function(d) { return d.age }
scale: 'linear',
domain: [0, 50, 100],
range: ['red', 'yellow', 'green'],
}
```
Getting default color(black) on the map.https://code.gramener.com/cto/g1/-/issues/59[Mapviewer] Feature request - After the zoom text should be visible2018-08-13T09:19:08ZAnvesh Dasari[Mapviewer] Feature request - After the zoom text should be visible![image](/uploads/d521bfe1d616ed18beaadc0467354ae2/image.png)
When we do the zoom on the map text should be visible.![image](/uploads/d521bfe1d616ed18beaadc0467354ae2/image.png)
When we do the zoom on the map text should be visible.1.40TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/1$.template() should allow src attribute to specify a template to load.2017-12-25T13:40:56ZS Anand$.template() should allow src attribute to specify a template to load.`<script type="template/html" src="template.html"></script>` should load `template.html` in place.`<script type="template/html" src="template.html"></script>` should load `template.html` in place.S AnandS Anandhttps://code.gramener.com/cto/g1/-/issues/148$.formhandler editable fails for columns which have spaces in name2019-02-15T05:56:30ZTejesh$.formhandler editable fails for columns which have spaces in nameraised by @venkata.reddyraised by @venkata.reddy1.51TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/153$.dropdown() not working2019-03-12T06:19:37ZParashar Sangle$.dropdown() not working### Summary
(Summarize the bug encountered concisely)
### Steps to reproduce
$('#usr_names').dropdown({
data: ['lol','rofll']
})
### What is the current *bug* behavior?
Dropdown with no urlfilter in selectpicker
<select clas...### Summary
(Summarize the bug encountered concisely)
### Steps to reproduce
$('#usr_names').dropdown({
data: ['lol','rofll']
})
### What is the current *bug* behavior?
Dropdown with no urlfilter in selectpicker
<select class="selectpicker border " id=""> <option value="lol">lol</option> <option value="rofll">rofll</option> </select>
### What is the expected *correct* behavior?
(What you should see instead)
### Possible fixes
(If you can, link to the line of code thay might be responsible for the problem. Or suggest where you think the problem might be.)https://code.gramener.com/cto/g1/-/issues/9$().formhandler enhancements2018-03-26T05:51:03ZS Anand$().formhandler enhancementsFeatures for Gramex v1.28 (31 Jan):
- [x] Add test cases for all README.md conditions
- [x] Add test cases for errors: invalid JSON, missing URL, HTTP 500, ...
- [x] Add loading indicator
- [x] Allow updating column info only for specif...Features for Gramex v1.28 (31 Jan):
- [x] Add test cases for all README.md conditions
- [x] Add test cases for errors: invalid JSON, missing URL, HTTP 500, ...
- [x] Add loading indicator
- [x] Allow updating column info only for specific columns
- [ ] Detect type of value for column highlighting -- use metadata from server
Additional features
- [ ] formhandler namespaces with multiple formhandlers
- [ ] Implement URL targets other than hash (e.g. pushState)
TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/6$().formhandler column formatting2018-03-06T07:11:43ZS Anand$().formhandler column formatting```html
<div src="formhandler" class="formhanlder">
<script>
$('.formhandler').formhandler({
// - `columns`: comma-separated column names to display, or a list of objects with these keys:
// - `name`: column name
// - `title`: d...```html
<div src="formhandler" class="formhanlder">
<script>
$('.formhandler').formhandler({
// - `columns`: comma-separated column names to display, or a list of objects with these keys:
// - `name`: column name
// - `title`: display name of the column. Defaults to the same value as `name`
// - `type`: `text` (default) / `number` / 'date'. Determines filters to be used
// - `format`: string / function. Functions are applied to the value and the return value is used. Strings are treated as:
// - a numeral.js format for number (numeral.js must be loaded by the developer)
// - a moment.js format for date (moment.js must be loaded by the developer)
// - `sort`: `true` / `false` / operators dict with:
// - `{'': 'Sort ascending', '-': 'Sort descending'}` (default)
// - `filters`: `true` (default) / `false` / operators dict with:
// - `{'', 'Equals...', '!', 'Does not equal...', ...}`.
// The default list of operators is based on the auto-detected type of the column.
// - `unique`: TODO: {dict of query parameter and display value} or [list of values] or function?
// - `hideable`: `true` (default) / `false`
columns: [
{name: 'ID', title: '#', type: 'text', sort: true, filters: true, hideable: true},
{name: 'c1', title: 'Red', type: 'number', sort: true, filters: true, hideable: true},
{
name: 'Name',
title: 'Name',
format: 'text',
sort: {
'': 'Sort alphabetically', // Only allow sort ascending
},
filters: {
'': 'Equals...',
'!': 'Does not equal...',
'~': 'Contains...',
'!~': 'Does not contain...'
},
hideable: false // Cannot hide this column from the UI
}
],
{
name: 'Symbols',
type: 'text',
format: function(val) { return val === null ? '' : val } // Disallow NaN
},
{
name: 'c8',
type: 'number',
format: '0,0.0' // Interpreted as a numeraljs format
}
})
```
Note: When the operators are clicked, a dialog box should pop up like at https://learn.gramener.com/guide/formhandler/flags?_format=table
Use a template for this - just like the other components.TejeshTejeshhttps://code.gramener.com/cto/g1/-/issues/2$('body').template() should work2017-12-25T18:48:37ZS Anand$('body').template() should work- Set the default selector as `script[type="text/html"], .template`. So `$('body').template()` will apply templates on all nodes matching the selector -- including the root element, i.e. 'body'.
- Setting `data-selector=` on the parent c...- Set the default selector as `script[type="text/html"], .template`. So `$('body').template()` will apply templates on all nodes matching the selector -- including the root element, i.e. 'body'.
- Setting `data-selector=` on the parent class (e.g. 'body' in the above example) should change the default selectorS AnandS Anand