@flosportsinc/ng-fullscreen
v13.3.0
Published
## Installation ```sh npm i @flosportsinc/ng-fullscreen ```
Downloads
1,203
Readme
Fullscreen
Installation
npm i @flosportsinc/ng-fullscreen
Import FloFullscreenModule
:
import { NgModule } from '@angular/core'
import { FloFullscreenModule } from '@flosportsinc/ng-fullscreen'
@NgModule({
imports: [
FloFullscreenModule
]
})
export class AppModule { }
Usage
floClickToExitFullscreen
will listen for click events on a given element and leave fullscreen.
floClickToEnterFullscreen
will listen for click events on a given element and enter fullscreen on the document body or a provided reference to another html element.
*floIfFullscreen
renders its element if the document is in fullscreen
*floIfNotFullscreen
renders its element if the document is NOT in fullscreen
<div #takeMeFullscreen>
<h3>I am content you can see when fullscreen</h3>
<button *floIfFullscreen floClickToExitFullscreen>Exit Fullscreen</button>
<button *floIfNotFullscreen [floClickToEnterFullscreen]="takeMeFullscreen">Enter Fullscreen</button>
</div>