-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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.
lewa-type/app/templates/competition_play.html
Lines 299 to 312 in 5d791f4
| 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
Labels
No labels