Home Reference Source
import EncodingInputTemplate from '~/template/Form/EncodingInputTemplate.js'
public class | source

EncodingInputTemplate

Extends:

TemplateSearchInputTemplate → EncodingInputTemplate

Indirect Implements:

Encoding picker template.

Constructor Summary

Public Constructor
public

Pass the query from Encoding.query which is async.

Method Summary

Public Methods
public
public
public
public

Inherited Summary

From class Template
public static get

An empty template

public static

Performs a move TemplateType for a given HTML id to return a template based on the id's root.

public static

fromInnerHTML(wrapper: HTMLElement, innerHTML: string, type: TemplateType): Template

From innerHTML will wrap in div

public static

Creates template <div> with text.

public get

underlyingNode: HTMLElement

Returns the underlying element

public

defineLinkedClass(name: string, className: string, node: HTMLElement)

Defines a linked class

public

defineLinkedInput(name: string, input: HTMLElement)

Defines a linked input

public

defineLinkedText(name: string, defaultValue: string): Text

Creates a field w/ updating text

public abstract

async didInitialLoad()

Called when loaded the first time

public abstract

Called when the view has loaded

public

Called when disappeared

public

getParent(defaultElement: HTMLElement): HTMLElement

Gets the original parent or else a default

public

loadBeforeContext(elem: HTMLElement): HTMLElement

Loads before an element

public

loadInContext(parent: HTMLElement, allowDupliacte: boolean): HTMLElement

Loads the template in a context

public

loadReplacingContext(source: HTMLElement): HTMLElement

Loads and replaces

public

prependInContext(parent: HTMLElement, allowDupliacte: boolean): HTMLElement

Prepends the template in a context

public

Removes from the context.

public

unique(): HTMLElement

Returns a unique instance of the template as an HTMLElement.

public

async willInitialLoad()

Called before loaded the first time

public

Called right before the view will appear on screen

public

Called before disappearing

From class SearchInputTemplate
public get
public

results: Element

List of all results

public

The input for the typical text input

public

value: BehaviorSubject

Emits the language when applicable

public abstract

compare(a: T, b: T): boolean

Override to specify comparator

public

displayResults(resultObject: T[])

Display array of results

public abstract

Fixed template to embed in

public abstract

observeCancelFor(template: Template): Observable

Observable for fixed template

public
public abstract

Template for a given result

Public Constructors

public constructor(query: Query<Encoding>) source

Pass the query from Encoding.query which is async.

Override:

SearchInputTemplate#constructor

Params:

NameTypeAttributeDescription
query Query<Encoding>

Public Methods

public compare() source

Override to specify comparator

Override:

SearchInputTemplate#compare

public fixedTemplateFor() source

Fixed template to embed in

Override:

SearchInputTemplate#fixedTemplateFor

public observeCancelFor() source

Observable for fixed template

Override:

SearchInputTemplate#observeCancelFor

public resultTemplateFor() source

Template for a given result

Override:

SearchInputTemplate#resultTemplateFor