NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Adding text to in-row button
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding text to in-row button (Read 4456 times)
Ubaidullah
Full Member
Posts: 125
Adding text to in-row button
«
on:
November 14, 2020, 03:40:24 PM »
Hi Bruce,
I have an in-row view button in a NetWebBrowse. I have set the text for the button to 'Show Details'. This is how it is looking:
How can I get it to show in one line and without overlapping the icon. Or, even remove the icon altogether like this:
Regards,
Ubaidullah Nubar.
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Adding text to in-row button
«
Reply #1 on:
November 14, 2020, 11:50:47 PM »
removing the icon should be easy enough - just remove the icon setting.
the text wrapping can be set with CSS - easiest is nt-nowrap CSS class.
.nt-nowrap{white-space: nowrap;
cheers
Bruce
Logged
Ubaidullah
Full Member
Posts: 125
Re: Adding text to in-row button
«
Reply #2 on:
November 16, 2020, 04:32:13 PM »
How do I remove the icon setting in this browse only, not globally ?
Regards,
Ubaidullah Nubar.
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: Adding text to in-row button
«
Reply #3 on:
November 16, 2020, 09:35:25 PM »
what kind of "in row" button are you using here? An "other" button, or a specific button?
Cheers
Bruce
Logged
Ubaidullah
Full Member
Posts: 125
Re: Adding text to in-row button
«
Reply #4 on:
November 17, 2020, 01:55:56 AM »
I am using an "in row" button of type "view".
I tried using an "other" button with action set to view but the form wouldn't fetch the highlighted record.
Regards,
Ubaidullah Nubar.
Logged
Ubaidullah
Full Member
Posts: 125
Re: Adding text to in-row button
«
Reply #5 on:
November 19, 2020, 08:14:30 AM »
Bruce,
Thanks for the help in the webinar today.
Got it working by adding the following code to the "value::Viewnn" routine:
p_web.site.SmallViewButton.jsIcon = ''
p_web.site.SmallViewButton.Class = ' nt-nowrap'
Thanks
&
Regards,
Ubaidullah Nubar.
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Adding text to in-row button