ButtonLocation

Sets the location of the buttons in the container.

Values

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

  • Bottom
  • Left
  • Right (default)
  • Top

If this property is set to Top or Bottom, the buttons are shown in a horizontal line. Otherwise, they are shown in a vertical line.

Examples

Container = CRM.GetBlock('container');
Container.DisplayButton(Button_Delete)= true;
Container.DisplayButton(Button_Continue)=true;
Container.DisplayButton(Button_Default)=true;
Container.ButtonTitle="My Button Title";
Container.ButtonLocation = Top;
CRM.AddContent(Container.Execute());
Response.Write(CRM.GetPage());

Displays the standard buttons at the top of the container.