This class create and manage the NoteDialog
The constructor
Name | Type | Description |
---|---|---|
note | Note | The edited note |
route | Route | The route to witch the note is linked |
An array with the HTMLElements that have to be added in the content of the dialog. Overload of the BaseDialog.contentHTMLElements property
The control that have currently the focus. Used for toolbar buttons
An array with the HTMLElements that have to be added in the footer of the dialog Overload of the BaseDialog.footerHTMLElements property
Data needed for the MapIconFromOsmFactory
The dialog title. Overload of the BaseDialog.title property
An HTMLElement that have to be added as toolbar for the dialog. Overload of the BaseDialog.toolbarHTMLElement property
Overload of the BaseDialog.canClose ( ) method. Verify that the url is valid and the iconContent completed
Create all the controls needed for the dialog. Overload of the base class createContentHTML
Overload of the BaseDialog.onCancel ( ) method.
Overload of the BaseDialog.onOk ( ) method.
Set the address of the note. Called by IconSelectorChangeEL
Set the control's values
Name | Type | Description |
---|---|---|
source | Object | An object with all the properties to update |
Update the preview of the note. Used by event listeners
Name | Type | Description |
---|---|---|
noteData | Object | An object with properties to copy in the preview note |
Update the toolbar after an upload of a config file
The address control
Event listeners
The control that have currently the focusControl
The icon control
The icon dims control
The link control
A reference to the currently edited note
The phone control
The popup control
The preview control
A clone of the #note used to store the modifications and display the preview
A reference to the route on witch the note is attached
The tooltip control
Destructor. Remove event listeners before closing the dialog and set event listeners objects to null, so all references to the dialog are released