rwjblue / pivot.js

Build Pivot Tables from CSV/JSON Data
http://rwjblue.github.com/pivot.js/
Other
782 stars 134 forks source link

Update CSS with classes and remove dynamic styles #23

Closed alexhgreen07 closed 11 years ago

alexhgreen07 commented 11 years ago

I would like to remove the dynamic styles generated when 'pivot_display()' is called. Also the <h2> tags should be changed to a CSS class. The list of change items is below:

.pivot_field
{
        float: none; 
        width: 300px; 
        margin-left: 20px;
}

The new code will look like:

<div class="pivot_field">
<span class="pivot_header2">Filter Fields</span>
<div id="filter-list">
<!-- Filter list tags -->
</div>
<div class="pivot_field">
<span class="pivot_header2">Row Label Fields</span>
<div id="row-label-fields">
<!-- Row label tags -->
</div>
<!-- etc... -->
alexhgreen07 commented 11 years ago

A change for this has been submitted as a pull request: https://github.com/rjackson/pivot.js/pull/24. If this change is accepted we can close both of these.