mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Use an MD icon for the clear button
This commit is contained in:
parent
3fa5168ea8
commit
7f3c181d06
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -1,10 +1,9 @@
|
||||
export const config = {
|
||||
|
||||
// Provides the "clear" button on the widget
|
||||
plugins: {
|
||||
'clear_button': {
|
||||
'html': (data: Dict) => `<i class="mdi mdi-close-circle ${data.className}" title="${data.title}"></i>`
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
plugins: {
|
||||
// Provides the "clear" button on the widget
|
||||
clear_button: {
|
||||
html: (data: Dict) =>
|
||||
`<i class="mdi mdi-close-circle ${data.className}" title="${data.title}"></i>`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { TomOption } from 'tom-select/src/types';
|
||||
import { escape_html } from 'tom-select/src/utils';
|
||||
import { DynamicTomSelect } from './classes/dynamicTomSelect';
|
||||
import { config } from './config'
|
||||
import { config } from './config';
|
||||
import { getElements } from '../util';
|
||||
|
||||
const VALUE_FIELD = 'id';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { TomOption } from 'tom-select/src/types';
|
||||
import TomSelect from 'tom-select';
|
||||
import { escape_html } from 'tom-select/src/utils';
|
||||
import { config } from './config'
|
||||
import { config } from './config';
|
||||
import { getElements } from '../util';
|
||||
|
||||
// Initialize <select> elements with statically-defined options
|
||||
|
Loading…
Reference in New Issue
Block a user