Пример #1
0
 def get_options(self):
     return {
         'multiple': False,
         'placeholder': 'Search a languoid by name',
         'formatResult': JS('WALS3.formatLanguoid'),
         'formatSelection': JS('WALS3.formatLanguoid')
     }
Пример #2
0
 def get_options(self):
     res = {'placeholder': "Search %s" % self.name, 'width': 'element'}
     if not self.collection:
         res.update(minimumInputLength=2,
                    multiple=True,
                    ajax={
                        'url': self.url,
                        'dataType': 'json',
                        'data': JS('CLLD.MultiSelect.data'),
                        'results': JS('CLLD.MultiSelect.results'),
                    })
     return res
Пример #3
0
 def get_options(self):
     return {
         'icon_size': 20,
         'hash': True,
         'max_zoom': 12,
         'on_init': JS('GLOTTOLOG3.LangdocStatus.update'),
         'no_showlabels': True}
Пример #4
0
 def get_options(self):
     return {
         'icon_size': 20,
         'max_zoom': 9,
         'worldCopyJump': True,
         'on_init': JS('wals_parameter_map_on_init'),
         'info_query': {
             'parameter': self.ctx.pk
         }
     }
Пример #5
0
 def get_options(self):
     opts = super(LanguoidsMultiSelect, self).get_options()
     opts['formatResult'] = JS('GLOTTOLOG3.formatLanguoid')
     opts['formatSelection'] = JS('GLOTTOLOG3.formatLanguoid')
     return opts