NetTalk Central

Author Topic: Standard buttons  (Read 4001 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Standard buttons
« on: June 23, 2014, 02:53:27 AM »
How to set CSS class and remove or change icon for standard form buttons?

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Standard buttons
« Reply #1 on: June 23, 2014, 05:09:38 AM »
you want to change them globally - or just on one procedure?

cheers
Bruce

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Standard buttons
« Reply #2 on: June 23, 2014, 07:18:31 AM »
If I may choose, both.

Regards,

Djole

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Standard buttons
« Reply #3 on: June 24, 2014, 03:12:34 AM »
Globally it's done via the Buttons list in the WebServer procedure, Buttons tab.

Locally it's done by setting the class for the button - just like you set the Text for the Save button on a login form. ie

p_web.site.whateverbutton.Class = 'something'

Cheers
Bruce

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Standard buttons
« Reply #4 on: June 25, 2014, 02:22:59 AM »
Bruce,

is there any possibilities to remove or change default icon?

Best regards,

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Standard buttons
« Reply #5 on: June 26, 2014, 06:18:11 AM »
the following properties are in the group (not just Class).

NetWebButtonGroup      Group,Type
Name                     String(40)
TextValue                String(40)
Image                    String(256)
ImageWidth               Long
ImageHeight              Long
ImageAlt                 String(256)
Class                    String(StyleStringSize)
ToolTip                  String(256)
UseJavaScript            Long
jsIcon                   String(40)
PopupHeader              String(40)
Compact                  Long
MobileIcon               String(40)
MobileText               String(40)
                       End



These are all set on the web server procedure, or can be overridden locally, including the icon.

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Standard buttons
« Reply #6 on: June 26, 2014, 07:58:01 AM »
Done.

Thanx Bruce