addTask(newDescription){
   this.onSubmitNewTask.emit(newDescription.value);
   newDescription.value="";
 }
 deleteEntry(entry: Entry){
   this.onSubmitDeleteEntry.emit(entry);
 }
Example #3
0
 onPageSizeChanged(pageSize : number){
     this.pageDetails.pageSize = +pageSize;
     this.changed.emit(null);
 }
 // This method can be called by subscribers to force a push.  Useful when a
 // component is initialized.
 pushStateToSubscribers() {
     let persistenceState = this.getState();
     console.log('PersistenceService publishing state change:', persistenceState);
     this.persistenceStateChanged.next(persistenceState);
 }
 addKeg(userName: HTMLInputElement, userBrand: HTMLInputElement, userPrice: HTMLInputElement, userPintsLeft: HTMLInputElement) {
   var newKeg: Keg = new Keg(userName.value, userBrand.value, userPrice.value, userPintsLeft.valueAsNumber, 0);
   this.onSubmitNewKeg.emit(newKeg);
 }
 addTask(userDescription: HTMLInputElement, userPriority: HTMLInputElement){
   var newTask = [userDescription.value, userPriority.value];
   this.onSubmitNewTask.emit(newTask);
   userDescription.value = "";
   userPriority.value="low";
 }
Example #7
0
 closeAlert() {
     this.closeAlertEventEmitter.emit();
 }
 closeDetailsField() {
   this.closeDetails.emit(1);
 }
 onSelect(strain) {
   this.emitter.emit(strain);
 }
 newTask(newDescription: HTMLInputElement): void {
   this.onSubmitNewTask.emit(newDescription.value);
   newDescription.value = "";
 }
Example #11
0
 doDecrease() {
     console.log("CounterComponent.doDecrease()");
     this.decrease.emit(null);
 }
 onCloseForm() {
   this.closeForm.emit({});
 }
Example #13
0
 clicked(clickedProduct: Product): void{
   this.currentProduct = clickedProduct;
   this.onProductSelected.emit(clickedProduct);
 }
 mealClicked(){
   this.onClick.emit(this.meal);
 }
 addFood(foodName : HTMLInputElement, foodDetails : HTMLInputElement, foodCalories : HTMLInputElement) {
   var moreFood = new Food(foodName.value, foodDetails.value, parseInt(foodCalories.value), 0);
   this.onSubmitMoreFood.emit(moreFood);
 }
 taskClicked(clickedTask: Task): void {
   console.log('child', clickedTask);
   this.selectedTask = clickedTask;
   this.onTaskSelect.emit(clickedTask);
 }
 dispClicked(clickedDisp: Disp): void {
   console.log('child', clickedDisp);
   this.selectedDisp = clickedDisp;
   this.onDispSelect.emit(clickedDisp);
 }
Example #18
0
 kegClicked(clickedKeg: Keg): void {
   console.log('child', clickedKeg);
   this.selectedKeg = clickedKeg;
   this.onKegSelect.emit(clickedKeg);
 }
Example #19
0
 swal(sweetalert:any) {
     this.sweetAlertEventEmitter.emit(sweetalert);
 }
Example #20
0
 public update(value: number): void {
     this.setRate.emit(value);
 }
Example #21
0
 showInputError(message:string) {
     this.showInputErrorEventEmitter.emit(message);
 }
 public logoutClicked(): void {
     this.logout.emit(null);
 }
 ingredientClicked(clickedIngredient: Ingredient): void {
   console.log("Hector here:", clickedIngredient);
   this.selectedIngredient = clickedIngredient;
   this.onIngredientSelect.emit(clickedIngredient);
 }
 cdClicked(clickedCd: Cd): void {
   console.log('child', clickedCd);
   this.selectedCd = clickedCd;
   this.onCdSelect.emit(clickedCd);
 }
 sort(sortBy) {
   console.log('sortdispmenu', sortBy);
   this.sortBy.emit(sortBy);
 }
 addKeg(userKegName: HTMLInputElement){
   this.onSubmitNewKeg.emit(userKegName.value);
   userKegName.value = "";
 }
 addTask(userDescription: HTMLInputElement){
   this.onSubmitNewTask.emit(userDescription.value);
   userDescription.value = "";
 }
  submitEdit() {
    this.onSubmitMealEdit.emit(true);
}
Example #29
0
 first(){
     this.pageDetails.first();
     this.changed.emit(null);
 }
Example #30
0
 submitConsentForm() {
     this.consentFormReady.emit(this.orsp);
 }