Skip to content

Useless hiding of the afrim input loading state #9

@pythonbrad

Description

@pythonbrad

Description

The download status required by the afrim-input is not only to download the dataset, but also to load and config the afrim.
When the afrim will finish initiating, it will hide it automatically, then the developer don't need to take care about it.

downloadStatus.hidden = false;
const af = new AfrimInput({
textFieldElementID: 'textfield',
downloadStatusElementID: 'download-status',
tooltipElementID: 'tooltip',
tooltipInputElementID: 'tooltip-input',
tooltipPredicatesElementID: 'tooltip-predicates',
configUrl: `https://raw.githubusercontent.com/fodydev/afrim-data/4b177197bb37c9742cd90627b1ad543c32ec791b/${selectedLang}/${selectedLang}.toml`,
});
setTimeout(() => { downloadStatus.hidden = true; }, 600);
console.log('Afrim Input initialized', af);
} catch (err) {
console.error('AfrimInput init failed', err);
downloadStatus.hidden = true;

Expected soution

Leave the afrim to handle the display state of this download status element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions