mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28: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 = {
|
export const config = {
|
||||||
|
|
||||||
// Provides the "clear" button on the widget
|
|
||||||
plugins: {
|
plugins: {
|
||||||
'clear_button': {
|
// Provides the "clear" button on the widget
|
||||||
'html': (data: Dict) => `<i class="mdi mdi-close-circle ${data.className}" title="${data.title}"></i>`
|
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 { TomOption } from 'tom-select/src/types';
|
||||||
import { escape_html } from 'tom-select/src/utils';
|
import { escape_html } from 'tom-select/src/utils';
|
||||||
import { DynamicTomSelect } from './classes/dynamicTomSelect';
|
import { DynamicTomSelect } from './classes/dynamicTomSelect';
|
||||||
import { config } from './config'
|
import { config } from './config';
|
||||||
import { getElements } from '../util';
|
import { getElements } from '../util';
|
||||||
|
|
||||||
const VALUE_FIELD = 'id';
|
const VALUE_FIELD = 'id';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { TomOption } from 'tom-select/src/types';
|
import { TomOption } from 'tom-select/src/types';
|
||||||
import TomSelect from 'tom-select';
|
import TomSelect from 'tom-select';
|
||||||
import { escape_html } from 'tom-select/src/utils';
|
import { escape_html } from 'tom-select/src/utils';
|
||||||
import { config } from './config'
|
import { config } from './config';
|
||||||
import { getElements } from '../util';
|
import { getElements } from '../util';
|
||||||
|
|
||||||
// Initialize <select> elements with statically-defined options
|
// Initialize <select> elements with statically-defined options
|
||||||
|
Loading…
Reference in New Issue
Block a user