27 lines
663 B
JavaScript
Raw Normal View History

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>
<span class="bx bx-x icon-action" data-search-option-del="fastSearch"></span>
</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);
}
}