Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

add custom texts to userOptions #18

Closed
wants to merge 1 commit into from
Closed

add custom texts to userOptions #18

wants to merge 1 commit into from

Conversation

Tijawk
Copy link

@Tijawk Tijawk commented Mar 23, 2023

Adding options to customize texts

export interface Options {
    [...],

    /**
     * Search text on navbar.
     * 
     * @default 'Search...'
     * @type string
     * @memberof Options
     */
    searchText?: string;

    /**
     * Placeholder text on search input.
     * 
     * @default 'Search. Use double quotes for stricter results.'
     * @type string
     * @memberof Options
     */
    placeholderText?: string;

    /**
     * Text to display when no results are found.
     * 
     * @default 'No results found.'
     * @type string
     * @memberof Options
     */
    noResultsText?: string;

    /**
     * Text to display when search is complete.
     * 
     * @default '{time}ms for {count} results'
     * @type string
     * @memberof Options
     */     
    searchTimeText?: string;
}

close #17

@Tijawk Tijawk marked this pull request as draft March 24, 2023 08:04
@Tijawk
Copy link
Author

Tijawk commented Mar 24, 2023

README.md needs to be updated with new options

@Tijawk
Copy link
Author

Tijawk commented Mar 26, 2023

Close this PR.

Replaced by #21 with more improvements

@Tijawk Tijawk closed this Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add options for custom locales
1 participant