UNPKG

1.4 kBTypeScriptView Raw
1/**
2 * Copyright 2018 Google Inc. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import * as Api from '../../../api/v2';
17/** @public */
18export interface ButtonOptions {
19 /**
20 * Text shown on the button.
21 * @public
22 */
23 title: string;
24 /**
25 * String URL to open.
26 * @public
27 */
28 url?: string;
29 /**
30 * Action to take when selected. Recommended to use the url property for simple web page url open.
31 * @public
32 */
33 action?: Api.GoogleActionsV2UiElementsOpenUrlAction;
34}
35/**
36 * Card Button. Shown below cards. Open a URL when selected.
37 * @public
38 */
39export interface Button extends Api.GoogleActionsV2UiElementsButton {
40}
41export declare class Button implements Api.GoogleActionsV2UiElementsButton {
42 /**
43 * @param options Button options
44 * @public
45 */
46 constructor(options: ButtonOptions);
47}