@ribajs/shopify
Version:
Shopify extension for Riba.js
29 lines (28 loc) • 971 B
TypeScript
import { Component, ScopeBase } from "@ribajs/core";
export interface ValidationObject {
fields: {
[name: string]: string;
};
valid: boolean;
error?: string;
}
interface Scope extends ScopeBase {
form: ValidationObject;
send: ShopifyContactFormComponent["send"];
selectAll: ShopifyContactFormComponent["selectAll"];
}
export declare class ShopifyContactFormComponent extends Component {
static tagName: string;
static get observedAttributes(): string[];
protected form?: HTMLFormElement;
scope: Scope;
constructor();
protected connectedCallback(): void;
send(event: Event): false | undefined;
selectAll(event: Event, scope: any, eventEl: HTMLInputElement): void;
protected validate(form: HTMLFormElement, validationScope: ValidationObject): void;
protected beforeBind(): Promise<void>;
protected requiredAttributes(): string[];
protected template(): Promise<string | null>;
}
export {};