ButtonAlignment

Adjusts the alignment of the buttons on the screen.

Values

Possible values of this property are defined in the SageCrmNoLang.js include file and by default are as follows:

  • 0. Bottom.
  • 1. Left.
  • 2. Right.
  • 3. Top.

The values this parameter can take depend on the value set in the ButtonLocation parameter.

If the ButtonLocation parameter is set to Top or Bottom, the ButtonAlignment parameter can only be set to Left (1) or Right (2).

If the ButtonLocation parameter is set to Left or Right, the ButtonAlignment parameter can only be set to Top (3) or Bottom (0).

Example

Container = CRM.GetBlock("container");
Container.ButtonLocation = Top;
Container.ButtonAlignment = 1;
CRM.AddContent(Container.Execute());
Response.Write(CRM.GetPage());

Aligns the buttons to the left of the screen.