File

src/app/components/settings-sharer/settings-sharer.component.ts

Description

Settings sharer component

Metadata

Index

Properties
Methods
Accessors

Constructor

constructor(inputService: InputService, uiService: UiService, sanitizerService: SanitizerService, persistenceService: PersistenceService)

Constructs the settings sharer component. ~constructor

Parameters :
Name Type Optional Description
inputService InputService No

The input service injected dependency.

uiService UiService No

The ui service injected dependency.

sanitizerService SanitizerService No

The DOM sanitizer service injected dependency.

persistenceService PersistenceService No

The persistence service injected dependency.

Methods

Public onUploadClicked
onUploadClicked(event: MouseEvent)

Upload clicked handler.

Parameters :
Name Type Optional Description
event MouseEvent No

The click event initiating the upload selection modal.

Returns : void
Public onUploadSettingsChanged
onUploadSettingsChanged(event: Event)

Upload settings changed event handler.

Parameters :
Name Type Optional Description
event Event No

The change event.

Returns : void
Public uploadSettings
uploadSettings(selectedFile: File)

Upload settings.

Parameters :
Name Type Optional Description
selectedFile File No

The selected file.

Returns : void

Properties

Optional clickableDownloadSettings
Type : ElementRef<HTMLAnchorElement>
Decorators :
@ViewChild('clickableDownloadSettings')

The download settings clickable element.

Optional clickableUploadSettings
Type : ElementRef<HTMLAnchorElement>
Decorators :
@ViewChild('clickableUploadSettings')

The upload settings clickable element.

Optional inputGroupUploadSettings
Type : ElementRef<HTMLInputElement>
Decorators :
@ViewChild('inputGroupUploadSettings')

The upload settings hidden input element.

Public inputService
Type : InputService
The input service injected dependency.
Public persistenceService
Type : PersistenceService
The persistence service injected dependency.
Public uiService
Type : UiService
The ui service injected dependency.
Optional uploadSettingsLabel
Type : ElementRef<HTMLLabelElement>
Decorators :
@ViewChild('uploadSettingsLabel')

The upload settings label element.

Accessors

defaultSettingsFileName
getdefaultSettingsFileName()

The default settings file name.

defaultSettingsFileExtension
getdefaultSettingsFileExtension()

The default settings file extension.

settings
getsettings()

Loads the settings.

./settings-sharer.component.scss

@use "../stylesheets/stylesheets.component.scss";
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""