Hi,
Looking for assistance with setting restricted selection values on a
category filter.
Example: Say I have a dataTable with information related to cities.
So I have a column "City" with values Dublin, Cork, London, Paris,
Rome etc. However I want to restrict the end user to be able to
select either Dublin or Cork but NOT London, Paris, Rome, etc.
I have set out the categoryPicker below with what I think is the
correct format based on my reading of controlWrapperObject page on
Google Code Labs. However when I run my code the category picker
still allows a full choice of Dublin, Cork, London, Paris, Rome etc.
Am I reading documentation incorrectly... Is this a valid way to set
restriction on selection?
Any assistance much appreciated.
Thanks
Tony
// Define a category picker control for the Site column in the
DataTable but restrict selection options to certain values
var categoryPicker2 = new google.visualization.ControlWrapper({
'controlType': 'CategoryFilter',
'containerId': 'control2',
'options': {
'values': [Dublin, Cork],
'filterColumnLabel': 'Site',
'ui': {
'label': 'Default View: ',
'labelStacking': 'vertical',
'allowTyping': false,
'allowMultiple': false
}
},
//set the onLoad state for the Catergory Picker button
'state': {'selectedValues': ['Dublin']}
});
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.