UNPKG

ionicons

Version:

Premium icons for Ionic.

68 lines (67 loc) 1.69 kB
export declare class Icon { private io?; private iconName; private inheritedAttributes; private didLoadIcon; el: HTMLElement; private svgContent?; private isVisible; /** * The mode determines which platform styles to use. */ mode: string; /** * The color to use for the background of the item. */ color?: string; /** * Specifies which icon to use on `ios` mode. */ ios?: string; /** * Specifies which icon to use on `md` mode. */ md?: string; /** * Specifies whether the icon should horizontally flip when `dir` is `"rtl"`. */ flipRtl?: boolean; /** * Specifies which icon to use from the built-in set of icons. */ name?: string; /** * Specifies the exact `src` of an SVG file to use. */ src?: string; /** * A combination of both `name` and `src`. If a `src` url is detected * it will set the `src` property. Otherwise it assumes it's a built-in named * SVG and set the `name` property. */ icon?: any; /** * The size of the icon. * Available options are: `"small"` and `"large"`. */ size?: string; /** * If enabled, ion-icon will be loaded lazily when it's visible in the viewport. * Default, `false`. */ lazy: boolean; /** * When set to `false`, SVG content that is HTTP fetched will not be checked * if the response SVG content has any `<script>` elements, or any attributes * that start with `on`, such as `onclick`. * @default true */ sanitize: boolean; componentWillLoad(): void; connectedCallback(): void; componentDidLoad(): void; disconnectedCallback(): void; private waitUntilVisible; loadIcon(): void; render(): any; }