question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

custom action bug

See original GitHub issue

I’m trying to add a button to custom action, but a new column is not added in the action, making the button overlap with the others.

settings = {
    actions: {
      custom: [
        {
          name: 'Button',
          title: 'Button ',
        }
      ],
    },
    columns: {
      name: {
        title: 'Full name'
      },
      email: {
        title: 'Email'
      },
      lastLogin: {
        title: 'Last Login'
      }
    }
  };

image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
NicolasKrittercommented, May 6, 2019

Got a fix in my global scss file

tr .ng2-smart-actions{ display: flex; }
ng2-st-tbody-custom {display: flex;}

ng2-st-tbody-edit-delete a.ng2-smart-action {display: inline-block !important;}
ng2-st-tbody-create-cancel a.ng2-smart-action {display: inline-block !important;}
ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
    display: inline-block;
    width: 70px;
    text-align: center;
}

image

In the screenshot, all icons are custom action adn all text button are the native edt/delete you can play with the withd and text-align

0reactions
HenriquePTcommented, Sep 17, 2020

Got a fix in my global scss file

tr .ng2-smart-actions{ display: flex; }
ng2-st-tbody-custom {display: flex;}

ng2-st-tbody-edit-delete a.ng2-smart-action {display: inline-block !important;}
ng2-st-tbody-create-cancel a.ng2-smart-action {display: inline-block !important;}
ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
    display: inline-block;
    width: 70px;
    text-align: center;
}

image

In the screenshot, all icons are custom action adn all text button are the native edt/delete you can play with the withd and text-align

This fix worked for me. Thanks @NicolasKritter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Returning Error Messages from Custom Actions - Win32 apps
To send an error message from a custom action that uses a dynamic-link library (DLL), have the custom action call MsiProcessMessage. Note that ......
Read more >
[BUG] Get-PnPCustomAction Does Not Find Any Custom Actions
I am expecting to get a list of custom actions when running Get-PnPCustomAction against a site that definitely has user custom action. If ......
Read more >
Custom actions no longer working - Atlassian Community
Custom actions are not working properly as of Windows Sourcetree 3.3.4. ... Here is a similar (possibly the same) bug report for a...
Read more >
wix - Interrupt installation when custom action returns error
1 ) Wrong C++ custom action code configuration, often forgetting to create a CA. · 2 ) Wrong path to custom action dll...
Read more >
Custom actions | Gleap SDK documentation
We know that the built in actions (Bug Reporting, Feature Requests, Ratings & Contact Us) might not be enough for certain use cases....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found