Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/js/rest/form-constructor/src/
Upload File :
Current File : /var/www/homesaver/www/bitrix/js/rest/form-constructor/src/types.js

export type DropdownItemConfig = {
	value: string,
	name: string,
}

export type FieldConfig = {
	id: string,
	name: string,
	type: 'input' | 'dropdown-list',
	placeholder?: string,
	items?: Array<DropdownItemConfig>,
	label?: string,
	value?: string
}

export type StepEInvoiceSettingsConfig = {
	id: string,
	title?: string,
	description?: string,
	fields?: Array<FieldConfig>,
	link?: {
		name: string,
		url: string,
	},
}

export type SettingsEInvoiceOptions = {
	steps: Array<StepEInvoiceSettingsConfig>,
	wrapper: HTMLElement,
	handler: string,
	redirect?: string,
	saveAction: function,
}