NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Ubaidullah 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:
(https://oasestech.com/projects/images/otherbuttontext.png)
How can I get it to show in one line and without overlapping the icon. Or, even remove the icon altogether like this:
(https://oasestech.com/projects/images/showdetailsbutton.png)
Regards,
Ubaidullah Nubar.
-
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
-
How do I remove the icon setting in this browse only, not globally ?
Regards,
Ubaidullah Nubar.
-
what kind of "in row" button are you using here? An "other" button, or a specific button?
Cheers
Bruce
-
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.
-
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.