Files
ionic-framework/core/src/utils/element-interface.ts
Brandy Carney eca4121dc6 feat(components): add missing button/a props to components that render them (#17883)
Adds the following properties to the components listed under them:

`rel`, `download`, `target`:
- anchor
- button
- card
- fab-button
- item-option
- item
- tab-button

`disabled`:
- back-button
- menu-button

`type`:
- back-button
- item-option
- menu-button
- segment-button

fixes #16848 closes #16889


Co-authored-by: bitflower <matthias.max@bitflower.net>
2019-06-12 14:06:29 -04:00

21 lines
582 B
TypeScript

// import { RouterDirection } from '../interface';
// TODO router direction
// The interfaces in this file are used to make sure our components
// have the correct properties defined that are needed to pass to
// the native HTML elements they render
export interface AnchorInterface {
href: string | undefined;
target: string | undefined;
rel: string | undefined;
download: string | undefined;
// routerDirection: RouterDirection;
}
export interface ButtonInterface {
type: 'submit' | 'reset' | 'button';
disabled: boolean;
// routerDirection: RouterDirection;
}