FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
types
/
components
/
ui
/
button
Edit File: sc-button.d.ts
import { EventEmitter } from '../../../stencil-public-runtime'; /** * @part base - The elements base wrapper. * @part label - The button label. * @part prefix - The button prefix. * @part suffix - The button suffix. * @part caret - The button caret. * @part spinner - The button spinner. */ export declare class ScButton { button: HTMLElement | HTMLAnchorElement; private hasFocus; private hasLabel; private hasPrefix; private hasSuffix; /** The button's type. */ type: 'default' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'text' | 'link'; /** The button's size. */ size: 'small' | 'medium' | 'large'; /** Draws the button with a caret for use with dropdowns, popovers, etc. */ caret?: boolean; /** Draws the button full-width. */ full?: boolean; /** Disables the button. */ disabled?: boolean; /** Draws the button in a loading state. */ loading?: boolean; /** Draws an outlined button. */ outline?: boolean; /** Draws the button in a busy state. */ busy?: boolean; /** Draws a pill-style button with rounded edges. */ pill?: boolean; /** Draws a circle button. */ circle?: boolean; /** Indicates if activating the button should submit the form. Ignored when `href` is set. */ submit?: boolean; /** An optional name for the button. Ignored when `href` is set. */ name: string; /** An optional value for the button. Ignored when `href` is set. */ value: string; /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */ href: string; /** Tells the browser where to open the link. Only used when `href` is set. */ target: '_blank' | '_parent' | '_self' | '_top'; /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */ download: string; /** Tells the browser to autofocus. */ autofocus: boolean; /** Emitted when the button loses focus. */ scBlur: EventEmitter<void>; /** Emitted when the button gains focus. */ scFocus: EventEmitter<void>; componentWillLoad(): void; /** Simulates a click on the button. */ click(): void; /** Sets focus on the button. */ focus(options?: FocusOptions): void; /** Removes focus from the button. */ blur(): void; handleSlotChange(): void; handleBlur(): void; handleFocus(): void; handleClick(event: MouseEvent): void; submitForm(): void; render(): any; }
Save
Back