UNPKG

@ryusei/code

Version:

<div align="center"> <a href="https://code.ryuseijs.com"> <img alt="RyuseiCode" src="https://code.ryuseijs.com/images/svg/logo.svg" width="70"> </a>

52 lines (48 loc) 970 B
import { UIButtonSettings } from '@ryusei/code'; import { Search } from './Search'; /** * Buttons settings for the search interface. */ export const SEARCH_BUTTONS: UIButtonSettings<Search>[] = [ { id : 'matchCase', icon : 'matchCase', click : 'toggleMatchCase', checkbox: true, }, { id : 'wholeWord', icon : 'word', click : 'toggleWholeWord', checkbox: true, }, { id : 'regexp', icon : 'regexp', click : 'toggleRegExp', checkbox: true, }, { id : 'prevMatch', icon : 'arrowUp', click: 'prev', }, { id : 'nextMatch', icon : 'arrowDown', click: 'next', }, ]; /** * Buttons settings for the replace interface. */ export const REPLACE_BUTTONS: UIButtonSettings<Search>[] = [ { id : 'replace', click: 'replace', }, { id : 'replaceAll', click: 'replaceAll', }, ];