| 25 | shadow: true, |
| 26 | }) |
| 27 | export class FabButton implements ComponentInterface, AnchorInterface, ButtonInterface { |
| 28 | private fab: HTMLIonFabElement | null = null; |
| 29 | private inheritedAttributes: Attributes = {}; |
| 30 | |
| 31 | @Element() el!: HTMLElement; |
| 32 | |
| 33 | /** |
| 34 | * The color to use from your application's color palette. |
| 35 | * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. |
| 36 | * For more information on colors, see [theming](/docs/theming/basics). |
| 37 | */ |
| 38 | @Prop({ reflect: true }) color?: Color; |
| 39 | |
| 40 | /** |
| 41 | * If `true`, the fab button will be show a close icon. |
| 42 | */ |
| 43 | @Prop() activated = false; |
| 44 | |
| 45 | /** |
| 46 | * If `true`, the user cannot interact with the fab button. |
| 47 | */ |
| 48 | @Prop() disabled = false; |
| 49 | |
| 50 | /** |
| 51 | * This attribute instructs browsers to download a URL instead of navigating to |
| 52 | * it, so the user will be prompted to save it as a local file. If the attribute |
| 53 | * has a value, it is used as the pre-filled file name in the Save prompt |
| 54 | * (the user can still change the file name if they want). |
| 55 | */ |
| 56 | @Prop() download: string | undefined; |
| 57 | |
| 58 | /** |
| 59 | * Contains a URL or a URL fragment that the hyperlink points to. |
| 60 | * If this property is set, an anchor tag will be rendered. |
| 61 | */ |
| 62 | @Prop() href: string | undefined; |
| 63 | |
| 64 | /** |
| 65 | * Specifies the relationship of the target object to the link object. |
| 66 | * The value is a space-separated list of [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types). |
| 67 | */ |
| 68 | @Prop() rel: string | undefined; |
| 69 | |
| 70 | /** |
| 71 | * When using a router, it specifies the transition direction when navigating to |
| 72 | * another page using `href`. |
| 73 | */ |
| 74 | @Prop() routerDirection: RouterDirection = 'forward'; |
| 75 | |
| 76 | /** |
| 77 | * When using a router, it specifies the transition animation when navigating to |
| 78 | * another page using `href`. |
| 79 | */ |
| 80 | @Prop() routerAnimation: AnimationBuilder | undefined; |
| 81 | |
| 82 | /** |
| 83 | * Specifies where to display the linked URL. |
| 84 | * Only applies when an `href` is provided. |