Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Add options to API data on datatables

DevPaulLeon free asked 5 years ago


Expected behavior

I would like to have options when I get data from an API.

Actual behavior

As far as I could read, there is one way to add options to tables and its this one

  rows: [
{
  name: 'Sede Principal',
  phoneNumber: '10101010',
  annex: '12222',
  actions: <React.Fragment>
    <MDBBtn tag="a" size="sm" >
      <MDBIcon icon="edit" />
    </MDBBtn>
    <MDBBtn tag="a" size="sm" className="ml-2" >
      <MDBIcon icon="trash-alt" />
    </MDBBtn>
  </React.Fragment>
}

]

How can I add those options when I get data from API?


Jakub Chmura staff answered 5 years ago


Hi @DevPaulLeon,

For now it's not posible to add those options at all.

We have already had a request to improve this component with the mentioned function and this task is on our feature list, but we currently have other priorities for the upcoming releases.

If there is anything else I could do for you do not hesitate to ask me. I'll be happy to help you.

Best Regards,

Kuba



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.21.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No