2021-01-24 22:30:53 +01:00
|
|
|
import AbstractSearchOption from "./abstract_search_option.js";
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
<tr data-search-option-conf="fastSearch">
|
|
|
|
<td colSpan="2">
|
|
|
|
<span class="bx bx-run"></span>
|
|
|
|
|
|
|
|
Fast search
|
|
|
|
</td>
|
|
|
|
<td>
|
2021-01-26 10:42:55 +01:00
|
|
|
<span class="bx bx-x icon-action search-option-del"></span>
|
2021-01-24 22:30:53 +01:00
|
|
|
</td>
|
|
|
|
</tr>`;
|
|
|
|
|
|
|
|
export default class FastSearch extends AbstractSearchOption {
|
|
|
|
static get optionName() { return "fastSearch" };
|
|
|
|
static get attributeType() { return "label" };
|
|
|
|
|
|
|
|
static async create(noteId) {
|
|
|
|
await AbstractSearchOption.setAttribute(noteId,'label', 'fastSearch');
|
|
|
|
}
|
|
|
|
|
|
|
|
doRender() {
|
|
|
|
return $(TPL);
|
|
|
|
}
|
|
|
|
}
|