NetTalk Central

Author Topic: Adding text to in-row button  (Read 2341 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
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

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
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

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
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.

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
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.