projects/congarevenuecloud/elements/src/lib/product-drawer/product-drawer.service.ts
Product Drawer service is used to check Drawer status(open/close).
import { ProductDrawerService, AObjectService} from '@congarevenuecloud/ecommerce';
export class MyComponent implements OnInit{
constructor( private productDrawerService: ProductDrawerService)
}
// or
export class MyService extends AObjectService {
private productDrawerService: ProductDrawerService = this.injector.get(ProductDrawerService);
}
Methods |
|
Public closeDrawer |
closeDrawer()
|
To close the drawer Example:Example :
Returns :
void
|
Public openDrawer |
openDrawer()
|
TO open the drawer Example:Example :
Returns :
void
|
Public toggleDrawer |
toggleDrawer()
|
toggle the drawer action. close if it is open or vice versa Example:Example :
Returns :
void
|