refactor(components): rename functions for consistency and use typings

This commit is contained in:
Brandy Carney
2017-10-23 17:59:00 -04:00
parent f3b509ee85
commit 0ffc911198
3 changed files with 6 additions and 4 deletions

View File

@ -163,8 +163,8 @@ export class Alert {
}
}
btnClick(button: any) {
console.log('btnClick', button);
buttonClick(button: any) {
console.log('buttonClick', button);
// TODO keep the time of the most recent button click
// this.lastClick = Date.now();
@ -375,7 +375,7 @@ export class Alert {
<div class={alertButtonGroupClass}>
{buttons.map(b =>
<button class={this.buttonClass(b)} onClick={() => this.btnClick(b)}>
<button class={this.buttonClass(b)} onClick={() => this.buttonClick(b)}>
<span class='button-inner'>
{b.text}
</span>

View File

@ -1,5 +1,6 @@
import { Component, Element, Prop, PropDidChange } from '@stencil/core';
import { HTMLIonFabElement } from '../../index';
/**
* @name FabList
@ -29,7 +30,7 @@ import { Component, Element, Prop, PropDidChange } from '@stencil/core';
tag: 'ion-fab-list',
})
export class FabList {
@Element() private el: HTMLElement;
@Element() private el: HTMLIonFabElement;
@Prop() activated: boolean = false;

View File

@ -1,6 +1,7 @@
import { Component, CssClassMap, Element, Method, Prop, State, PropDidChange } from '@stencil/core';
import { createThemedClasses, getElementClassObject } from '../../utils/theme';
import { HTMLIonFabListElement } from '../../index';
/**
* @name FabButton