NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Ubaidullah on November 14, 2020, 03:40:24 PM

Title: Adding text to in-row button
Post 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.
Title: Re: Adding text to in-row button
Post by: Bruce 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
Title: Re: Adding text to in-row button
Post by: Ubaidullah on November 16, 2020, 04:32:13 PM
How do I remove the icon setting in this browse only, not globally ?

Regards,
Ubaidullah Nubar.
Title: Re: Adding text to in-row button
Post by: Bruce 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
Title: Re: Adding text to in-row button
Post by: Ubaidullah 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.
Title: Re: Adding text to in-row button
Post by: Ubaidullah 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.