NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on June 23, 2014, 02:53:27 AM

Title: Standard buttons
Post by: Djordje Radovanovic on June 23, 2014, 02:53:27 AM
How to set CSS class and remove or change icon for standard form buttons?

Djordje Radovanovic
Title: Re: Standard buttons
Post by: Bruce on June 23, 2014, 05:09:38 AM
you want to change them globally - or just on one procedure?

cheers
Bruce
Title: Re: Standard buttons
Post by: Djordje Radovanovic on June 23, 2014, 07:18:31 AM
If I may choose, both.

Regards,

Djole
Title: Re: Standard buttons
Post by: Bruce 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
Title: Re: Standard buttons
Post by: Djordje Radovanovic on June 25, 2014, 02:22:59 AM
Bruce,

is there any possibilities to remove or change default icon?

Best regards,

Djordje Radovanovic
Title: Re: Standard buttons
Post by: Bruce 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.
Title: Re: Standard buttons
Post by: Djordje Radovanovic on June 26, 2014, 07:58:01 AM
Done.

Thanx Bruce