Predix_Logo
  • Categories
    • Questions
    • Predix | Updates
      • Pricing
      • Product
    • Deloitte - Private
    • How-To
    • Accenture-Private
  • Explore
    • Topics
    • Questions
    • Articles
    • Feedback or Feature Requests
  • Sign in
  • Home /
  • Questions /
avatar image
0
Question by Ryan · May 11, 2018 at 05:51 AM · px-data-table

Toggle button within px-data-table-column

Here is my current px-table code:

 <px-data-table table-data="[[tableData]]" filterable striped selected-rows="{{_selectedRule}}" selectable id="ruleTableID">
             <px-data-table-column filterable name="rule_name" type="html" label="Rule Name" ></px-data-table-column>
             <px-data-table-column filterable max-column-character-width="30" name="rule_message" label="Message"></px-data-table-column>
             <px-data-table-column filterable max-column-character-width="30" name="rule_maintenance_tip" label="Maintenance Tip"></px-data-table-column>
             <px-data-table-column filterable max-column-character-width="20" name="rule_dist_email" label="Recipient"></px-data-table-column>
             <px-data-table-column sortable filterable name="rule_job_frequency" label="Frequency (Minutes)"></px-data-table-column>
             <px-data-table-column filterable name="rule_enabled_display" label="Status"></px-data-table-column>
         </px-data-table>

I would like the final column for enabled with label="Status" to be a toggle button as the data is either Yes/No. Is this possible?

Comment
Add comment
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by Greg Stroup · Aug 20, 2018 at 08:59 AM

This should be possible by adding a column of type html, like this:

 <px-data-table-column type="html">

Comment
Add comment · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

94 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how to format date on px-data-table 1 Answer

Coloring in px-data-table 2 Answers

px-row-click and px-cell-click events doesn't work while using with event listener 3 Answers

px-data-table no result message 1 Answer

I am trying to integrate px-data-table with react but i am unable to render html element in px-data-table.Its getting displayed as normal text in table cell 0 Answers

GE Monogram
  • Legal
  • Cookies
  • Forum Terms
  • Contact Us
  • Copyright © 2017 General Electric Company. All rights reserved.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Submit your feedback or feature request
  • Categories
  • Questions
  • Predix | Updates
    • Pricing
    • Product
  • Deloitte - Private
  • How-To
  • Accenture-Private
  • Explore
  • Topics
  • Questions
  • Articles
  • Feedback or Feature Requests