none
change margin for this class 'dataTables_filter' in dataTable in react js SPFX webpart RRS feed

  • Question

  • Hi 

    In my react js SPFX webpart

    I am using dataTable as shown in below 

    import 'DataTables.net';

    Code :

    pnp.sp.web.lists.getByTitle(keyUserList).items.filter("Title eq "+currentPageName+"").getAll().then(values => {
    var jsonArray = values.map(function (i) {
    return [
    i.keyuser,
    i.usingOrg,
    i.usingSubOrg,
    i.Details
    ];
    });
    var table = $(this.refs.table).DataTable({
    data: jsonArray,
    columns: [
    { title: "Key User" },
    { title: "Using Organization" },
    { title: "Using Sub Organization" },
    { title: "Details" },
    ]
    });
    });

    Code :

    <div ><div > <div><table ref='table' className="stripe dataTable"></table></div> </div></div>

    In the  above dataTable i want to change margin for this class 'dataTables_filter' how can i apply?

    Thursday, December 5, 2019 4:42 AM

Answers

All replies