Skip to main content
Version: 3.5.2

uiSettings

Pelcro.uiSettings#

UiSettings configure properties that enable/disable some features.

Usage#

Pelcro.uiSettings = {
enableNameFieldsInRegister: false,
skipPaymentForFreePlans: false,
enableReactGA4: false,
enableLoginWithUsername: true,
};
Properties#
PropertyDescription
enableNameFieldsInRegisterEnables the Firstname and Lastname fields in the Register modal if enableNameFieldsInRegister is set to true, disables if not
skipPaymentForFreePlansWhen a user subscribes to a plan, if skipPaymentForFreePlans is set to true and plan price is 0, then the user will not go through the Payment modal
enableReactGA4Enables GA4 instead of regular GA for google analytics if enableReactGA4 is set to true, disables if not
enableLoginWithUsernameEnables logging in by username and updating username in the UserUpdate modal if enableLoginWithUsername is set to true, disables if not