Home Reference Source
import LanguageLookupViewController from '~/controllers/LanguageLookupViewController.js'
public class | source

LanguageLookupViewController

Extends:

ViewController → LanguageLookupViewController

Provides a language search box

Constructor Summary

Public Constructor
public

constructor(box: HTMLElement)

Creates a box with format:

Member Summary

Public Members
public

Method Summary

Public Methods
public

didInvalidateState(event: Event)

Called when this should update

public
public

Inherited Summary

From class ViewController
public static

forClass(className: string, predicate: Function, root: HTMLElement)

Creates a view controller directly for all members of a class.

public static

of(elem: string | Element): ViewController

Returns a canolical VC of an element if it exists

Public Constructors

public constructor(box: HTMLElement) source

Creates a box with format:

 div
     input

Where absolute div::after elements of top: 100% would fit.

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
box HTMLElement

HTML element container of box. Creates a canonical controller ref here.

Public Members

public delegate: ActionControllerDelegate source

Public Methods

public didInvalidateState(event: Event) source

Called when this should update

Params:

NameTypeAttributeDescription
event Event

public removeLanguage() source

public setLanguage() source