@api-components/http-method-selector
Version:
61 lines (56 loc) • 2.54 kB
TypeScript
/**
* DO NOT EDIT
*
* This file was automatically generated by
* https://github.com/Polymer/gen-typescript-declarations
*
* To modify these typings, edit the source file(s):
* http-method-selector.html
*/
/// <reference path="../polymer/types/polymer-element.d.ts" />
/// <reference path="../paper-radio-group/paper-radio-group.d.ts" />
/// <reference path="../paper-radio-button/paper-radio-button.d.ts" />
/// <reference path="../paper-dropdown-menu/paper-dropdown-menu.d.ts" />
/// <reference path="../paper-listbox/paper-listbox.d.ts" />
/// <reference path="../paper-item/paper-item.d.ts" />
/// <reference path="../paper-input/paper-input.d.ts" />
/// <reference path="../paper-icon-button/paper-icon-button.d.ts" />
/// <reference path="../arc-icons/arc-icons.d.ts" />
/// <reference path="../events-target-behavior/events-target-behavior.d.ts" />
/// <reference path="http-method-selector-mixin.d.ts" />
declare namespace UiElements {
/**
* A HTTP method selector. Displays list of radio buttons with common
* http methods and a dropdown with less common but still valid methods.
*
* User can define his own methos whe selects "custom" option in the dropdown menu.
* Because of this the element do not support validation of any kind and hosting
* application should provide one if required.
*
* ### Example
*
* ```html
* <http-method-selector></http-method-selector>
* ```
*
* ### Styling
* `<http-method-selector>` provides the following custom properties and mixins for styling:
*
* Custom property | Description | Default
* ----------------|-------------|----------
* `--http-method-selector` | Mixin applied to the element | `{}`
* `--http-method-selector-dropdown` | Mixin applied to the dropdown field | `{}`
* `--http-method-selector-input` | Mixin applied to the custom input field | `{}`
* `--http-method-selector-custom-close-button` | Mixin applied to the custom input close button | `{}`
* `--from-row-action-icon-color` | Theme variable, color of the custom input close button | `--icon-button-color` or `rgba(0, 0, 0, 0.74)`
* `--from-row-action-icon-color-hover` | Theme variable, color of the custom input close button when hovering | `--accent-color` or `rgba(0, 0, 0, 0.74)`
*/
class HttpMethodSelector extends
ArcBehaviors.EventsTargetBehavior(
ArcBehaviors.HttpMethodSelectorMixin(
Polymer.Element)) {
}
}
interface HTMLElementTagNameMap {
"http-method-selector": UiElements.HttpMethodSelector;
}