src/app/components/toggle/toggle.component.ts
Toggle component
selector | app-toggle |
styleUrls | ./toggle.component.scss |
templateUrl | ./toggle.component.html |
Properties |
|
Inputs |
Outputs |
Accessors |
constructor(toggleService: ToggleService, inputService: InputService, uiService: UiService, persistenceService: PersistenceService)
|
||||||||||||||||||||
Constructs the toggle component. ~constructor
Parameters :
|
context |
Type : literal type
|
Context. |
entityKey |
Type : string
|
Default value : ''
|
Entity key. |
toggleKind |
Type : ToggleKind
|
Toggle kind. |
visibility |
Type : boolean
|
Default value : true
|
Visibility. |
modelChanged |
Type : EventEmitter
|
Model changed event emitter. |
clickableToggle |
Type : ElementRef<HTMLSpanElement>
|
Decorators :
@ViewChild('clickableToggle')
|
Toggle clickable element. |
Public Readonly inputService |
Type : InputService
|
The input service injected dependency.
|
inputToggle |
Type : ElementRef<HTMLInputElement>
|
Decorators :
@ViewChild('inputToggle')
|
Toggle input element. |
Public Readonly persistenceService |
Type : PersistenceService
|
The persistence service injected dependency.
|
Public Readonly toggleService |
Type : ToggleService
|
The toggle service injected dependency.
|
Public Readonly uiService |
Type : UiService
|
The ui service injected dependency.
|
glyph |
getglyph()
|
Glyph. |
position |
getposition()
|
Position getter. |
value |
getvalue()
|
Value getter. |
sliderClass |
getsliderClass()
|
Slider class getter. |
displayValue |
getdisplayValue()
|
Display value getter.
Returns :
string
|
model | ||||||
getmodel()
|
||||||
Model getter.
Returns :
boolean
|
||||||
setmodel(value: boolean)
|
||||||
Model setter.
Parameters :
Returns :
void
|
propertyName |
getpropertyName()
|
Property name getter.
Returns :
string
|
./toggle.component.scss
@use "../stylesheets/stylesheets.component.scss";
.caption {
@-moz-document url-prefix() {
align-self: end;
bottom: 14px;
}
& {
position: relative;
left: 10px;
line-height: 0.6;
z-index: -1;
}
}
@media only screen and (max-width:767px) {
.caption {
top: 4px;
left: 33px;
}
}