Class: ReminderPresenter

ReminderPresenter(root, appInputSelector, substanceInputSelector, baseTabSelector, tabs)

Manages the UI for displaying reminders about current substance and application. Displays the current substance and application being edited in the UI, updating these reminders when selections change. Also provides links to return to editing the base properties.

Constructor

new ReminderPresenter(root, appInputSelector, substanceInputSelector, baseTabSelector, tabs)

Creates a new ReminderPresenter.
Parameters:
Name Type Description
root HTMLElement Root DOM element for the reminder UI.
appInputSelector string CSS selector for application input element.
substanceInputSelector string CSS selector for substance input element.
baseTabSelector string CSS selector for base tab element.
tabs Object Tabby tabs instance.
Source:

Methods

update()

Update the reminder UI elements with the current application and substance values. This function updates the innerHTML of reminder elements to display the current values for application and substance. It ensures that changes in the inputs are reflected in the corresponding reminder display fields.
Source: