Files
zulip/static/js
Rohitt Vashishtha cb85763c78 settings: Extract DropdownListWidget from default_code_language_widget.
We extract a general purpose widget to create dropdown lists with
search. This widget is used for default code block language, but can
be easily extended to cover notifications_stream and similar options.
The current usage is:

```js
const widget = DropdownListWidget({
    setting_name: 'realm_alpha_beta',
    data: [{name: 'hello', value: 'world'}, {...}, ...],
    subsection: 'msg-editing',
    default_text: 'Nothing is selected',
});
```

and

```handlebars
{{> dropdown_list_widget
  setting_name="realm_alpha_beta"
  list_placeholder=(t 'Filter the data')
  reset_button_text=(t '[Unset]')
  label=admin_settings_label.realm_alpha_beta }}
```

This can further be refined by shifting more variables from handlebars
to javascript in the future.
2020-04-14 12:50:10 -07:00
..
2020-03-02 17:45:44 -08:00
2020-02-25 15:37:37 -08:00
2020-03-24 20:40:19 -07:00
2020-02-15 12:20:20 -08:00
2020-02-04 12:22:03 -08:00
2020-02-15 12:20:20 -08:00
2020-02-25 15:37:37 -08:00
2019-10-25 13:51:21 -07:00
2020-02-25 15:37:37 -08:00
2020-03-26 21:35:32 -07:00
2020-02-10 15:57:20 -08:00
2020-02-25 15:37:37 -08:00
2020-02-15 12:20:20 -08:00
2020-02-25 15:37:37 -08:00
2019-10-25 13:51:21 -07:00
2020-02-25 15:37:37 -08:00