mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-13 06:31:33 +08:00
27 lines
663 B
JavaScript
27 lines
663 B
JavaScript
![]() |
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);
|
||
|
}
|
||
|
}
|