UNPKG

zcatalyst-integ-cliq

Version:

Node.js SDK for integrating Zoho Catalyst with Zoho Cliq

37 lines (36 loc) 827 B
import FormInput from './form-input.js'; export default class Form { constructor(isWidget = false) { if (!isWidget) { this.type = 'form'; } } newFormActionsObject() { return new FormActionsObject(); } newFormAction(name) { return new FormAction(name); } newFormInput() { return new FormInput(); } addInputs(...input) { if (this.inputs === undefined) { this.inputs = input; return this.inputs.length; } return this.inputs.push(...input); } } class FormActionsObject { newFormAction(name) { return new FormAction(name); } } class FormAction { constructor(name) { this.type = 'invoke.function'; this.mode = 'immediate'; this.name = name; } }